Home
last modified time | relevance | path

Searched refs:SUPERBLOCK (Results 1 – 5 of 5) sorted by relevance

/external/grub/stage2/
Dfsys_ffs.c74 #define SUPERBLOCK ((struct fs *) ( FSYS_BUF + 8192 )) macro
88 || !devread (SBLOCK, 0, SBSIZE, (char *) SUPERBLOCK) in ffs_mount()
89 || SUPERBLOCK->fs_magic != FS_MAGIC) in ffs_mount()
108 if ((bnum = fsbtodb (SUPERBLOCK, INODE->i_ib[0])) != mapblock in block_map()
111 if (MAPBUF_LEN < SUPERBLOCK->fs_bsize) in block_map()
113 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK)); in block_map()
116 if (offset + MAPBUF_LEN > SUPERBLOCK->fs_bsize) in block_map()
117 offset = (SUPERBLOCK->fs_bsize - MAPBUF_LEN) / sizeof (int); in block_map()
121 bsize = SUPERBLOCK->fs_bsize; in block_map()
139 return (((int *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK)) in block_map()
[all …]
Dfsys_ufs2.c74 #define SUPERBLOCK ((struct fs *) ( FSYS_BUF + 8192 )) macro
96 || ! devread (0, sblock_try[i], SBLOCKSIZE, (char *) SUPERBLOCK))) in ufs2_mount()
98 if (SUPERBLOCK->fs_magic == FS_UFS2_MAGIC /* && in ufs2_mount()
133 if ((bnum = fsbtodb (SUPERBLOCK, INODE_UFS2->di_ib[0])) != mapblock in block_map()
136 if (MAPBUF_LEN < SUPERBLOCK->fs_bsize) in block_map()
138 offset = ((file_block - NDADDR) % NINDIR (SUPERBLOCK)); in block_map()
141 if (offset + MAPBUF_LEN > SUPERBLOCK->fs_bsize) in block_map()
142 offset = (SUPERBLOCK->fs_bsize - MAPBUF_LEN) / sizeof (int); in block_map()
146 bsize = SUPERBLOCK->fs_bsize; in block_map()
164 return (((grub_int64_t *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK)) in block_map()
[all …]
Dfsys_ext2fs.c205 #define SUPERBLOCK \ macro
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)))
264 (char *) SUPERBLOCK) in ext2fs_mount()
265 || SUPERBLOCK->s_magic != EXT2_SUPER_MAGIC) in ext2fs_mount()
278 return devread (fsblock * (EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE), 0, in ext2_rdfsb()
279 EXT2_BLOCK_SIZE (SUPERBLOCK), (char *) buffer); in ext2_rdfsb()
323 if (logical_block < EXT2_ADDR_PER_BLOCK (SUPERBLOCK)) in ext2fs_block_map()
335 logical_block -= EXT2_ADDR_PER_BLOCK (SUPERBLOCK); in ext2fs_block_map()
[all …]
Dfsys_minix.c81 #define INODE_VERSION(inode) (SUPERBLOCK->s_version)
138 #define SUPERBLOCK \ macro
141 ((struct minix_inode *)((int) SUPERBLOCK + BLOCK_SIZE))
173 (char *) SUPERBLOCK)) in minix_mount()
176 switch (SUPERBLOCK->s_magic) in minix_mount()
337 ino_blk = (2 + SUPERBLOCK->s_imap_blocks + SUPERBLOCK->s_zmap_blocks in minix_dir()
/external/grub/
DChangeLog3202 with SUPERBLOCK + (sizeof(super) >> SECTOR_BITS) instead of