HomeSort by relevance Sort by last modified time
    Searched refs:SUPERBLOCK (Results 1 - 4 of 4) sorted by null

  /external/grub/stage2/
fsys_ffs.c 73 /* pointer to superblock */
74 #define SUPERBLOCK ((struct fs *) ( FSYS_BUF + 8192 ))
88 || !devread (SBLOCK, 0, SBSIZE, (char *) SUPERBLOCK)
89 || SUPERBLOCK->fs_magic != FS_MAGIC)
108 if ((bnum = fsbtodb (SUPERBLOCK, INODE->i_ib[0])) != mapblock
111 if (MAPBUF_LEN < SUPERBLOCK->fs_bsize)
113 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK));
116 if (offset + MAPBUF_LEN > SUPERBLOCK->fs_bsize)
117 offset = (SUPERBLOCK->fs_bsize - MAPBUF_LEN) / sizeof (int);
121 bsize = SUPERBLOCK->fs_bsize
    [all...]
fsys_ufs2.c 73 /* pointer to superblock */
74 #define SUPERBLOCK ((struct fs *) ( FSYS_BUF + 8192 ))
96 || ! devread (0, sblock_try[i], SBLOCKSIZE, (char *) SUPERBLOCK)))
98 if (SUPERBLOCK->fs_magic == FS_UFS2_MAGIC /* &&
99 (SUPERBLOCK->fs_sblockloc == sblockloc ||
100 (SUPERBLOCK->fs_old_flags & FS_FLAGS_UPDATED) == 0)*/)
133 if ((bnum = fsbtodb (SUPERBLOCK, INODE_UFS2->di_ib[0])) != mapblock
136 if (MAPBUF_LEN < SUPERBLOCK->fs_bsize)
138 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK));
141 if (offset + MAPBUF_LEN > SUPERBLOCK->fs_bsize
    [all...]
fsys_ext2fs.c 31 #define BLOCK_SIZE 1024 /* initial block size for superblock read */
205 #define SUPERBLOCK \
209 ((int)SUPERBLOCK + sizeof(struct ext2_super_block)))
211 ((struct ext2_inode *)((int)GROUP_DESC + EXT2_BLOCK_SIZE(SUPERBLOCK)))
215 ((int)((int)DATABLOCK1 + EXT2_BLOCK_SIZE(SUPERBLOCK)))
251 /* check filesystem types and read superblock into memory buffer */
264 (char *) SUPERBLOCK)
265 || SUPERBLOCK->s_magic != EXT2_SUPER_MAGIC)
278 return devread (fsblock * (EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE), 0,
279 EXT2_BLOCK_SIZE (SUPERBLOCK), (char *) buffer)
    [all...]
fsys_minix.c 81 #define INODE_VERSION(inode) (SUPERBLOCK->s_version)
138 #define SUPERBLOCK \
141 ((struct minix_inode *)((int) SUPERBLOCK + BLOCK_SIZE))
159 /* check filesystem types and read superblock into memory buffer */
173 (char *) SUPERBLOCK))
174 return 0; /* Cannot read superblock */
176 switch (SUPERBLOCK->s_magic)
291 known as SUPERBLOCK
337 ino_blk = (2 + SUPERBLOCK->s_imap_blocks + SUPERBLOCK->s_zmap_block
    [all...]

Completed in 447 milliseconds