Lines Matching refs:SUPERBLOCK
35 #define SUPERBLOCK ((struct fs *)(FSYS_BUF + 0x2000))
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, inode) * sizeof (struct icommon);
182 bound = UFS_NINDIR(SUPERBLOCK);
186 bound *= UFS_NINDIR(SUPERBLOCK);
198 blkno = fsbtodb(SUPERBLOCK, nb);
199 if (!devread(blkno, 0, SUPERBLOCK->fs_bsize,
204 bound /= UFS_NINDIR(SUPERBLOCK);
205 index = (bn / bound) % UFS_NINDIR(SUPERBLOCK);
211 blkno = fsbtodb(SUPERBLOCK, nb);
212 if (!devread(blkno, 0, SUPERBLOCK->fs_bsize,
217 bound /= UFS_NINDIR(SUPERBLOCK);
218 index = (bn / bound) % UFS_NINDIR(SUPERBLOCK);
241 off = blkoff(SUPERBLOCK, loc);
245 lbn = lblkno(SUPERBLOCK, loc);
251 dblk = fsbtodb(SUPERBLOCK, dbn);
252 if (!devread(dblk, 0, SUPERBLOCK->fs_bsize,