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

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ufs.c35 #define SUPERBLOCK ((struct fs *)(FSYS_BUF + 0x2000)) macro
52 !devread(UFS_SBLOCK, 0, UFS_SBSIZE, (char *)SUPERBLOCK) ||
53 SUPERBLOCK->fs_magic != UFS_MAGIC)
112 off = blkoff(SUPERBLOCK, filepos);
113 lblk = lblkno(SUPERBLOCK, filepos);
114 size = SUPERBLOCK->fs_bsize;
124 ok = devread(fsbtodb(SUPERBLOCK, dblk), off, size, buf);
156 dblk = fsbtodb(SUPERBLOCK, itod(SUPERBLOCK, inode));
157 off = itoo(SUPERBLOCK, inod
[all...]
H A Dfsys_ffs.c74 #define SUPERBLOCK ((struct fs *) ( FSYS_BUF + 8192 )) macro
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;
139 return (((int *) MAPBUF)[((file_block - NDADDR) % NINDIR (SUPERBLOCK))
[all...]
H A Dfsys_ufs2.c74 #define SUPERBLOCK ((struct fs *) ( FSYS_BUF + 8192 )) macro
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)
142 offset = (SUPERBLOCK
[all...]
H A Dfsys_ext2fs.c250 #define SUPERBLOCK \ macro
254 ((int)SUPERBLOCK + sizeof(struct ext2_super_block)))
256 ((struct ext2_inode *)((int)GROUP_DESC + EXT2_BLOCK_SIZE(SUPERBLOCK)))
260 ((int)((int)DATABLOCK1 + EXT2_BLOCK_SIZE(SUPERBLOCK)))
266 #define EXT2_INODE_SIZE(s) (SUPERBLOCK->s_inode_size)
312 (char *) SUPERBLOCK)
313 || SUPERBLOCK->s_magic != EXT2_SUPER_MAGIC)
326 return devread (fsblock * (EXT2_BLOCK_SIZE (SUPERBLOCK) / DEV_BSIZE), 0,
327 EXT2_BLOCK_SIZE (SUPERBLOCK), (char *) buffer);
371 if (logical_block < EXT2_ADDR_PER_BLOCK (SUPERBLOCK))
[all...]
H A 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))
176 switch (SUPERBLOCK->s_magic)
291 known as SUPERBLOCK
337 ino_blk = (2 + SUPERBLOCK->s_imap_blocks + SUPERBLOCK->s_zmap_blocks

Completed in 70 milliseconds