sb 38 defs.h void readsb(int dev, struct superblock *sb); sb 28 fs.c struct superblock sb; sb 32 fs.c readsb(int dev, struct superblock *sb) sb 37 fs.c memmove(sb, bp->data, sizeof(*sb)); sb 63 fs.c for(b = 0; b < sb.size; b += BPB){ sb 64 fs.c bp = bread(dev, BBLOCK(b, sb)); sb 65 fs.c for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ sb 87 fs.c bp = bread(dev, BBLOCK(b, sb)); sb 181 fs.c readsb(dev, &sb); sb 183 fs.c inodestart %d bmap start %d\n", sb.size, sb.nblocks, sb 184 fs.c sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb 185 fs.c sb.bmapstart); sb 201 fs.c for(inum = 1; inum < sb.ninodes; inum++){ sb 202 fs.c bp = bread(dev, IBLOCK(inum, sb)); sb 226 fs.c bp = bread(ip->dev, IBLOCK(ip->inum, sb)); sb 299 fs.c bp = bread(ip->dev, IBLOCK(ip->inum, sb)); sb 42 fs.h #define IBLOCK(i, sb) ((i) / IPB + sb.inodestart) sb 48 fs.h #define BBLOCK(b, sb) (b/BPB + sb.bmapstart) sb 199 lapic.c int sb, bcd; sb 201 lapic.c sb = cmos_read(CMOS_STATB); sb 203 lapic.c bcd = (sb & (1 << 2)) == 0; sb 59 log.c struct superblock sb; sb 61 log.c readsb(dev, &sb); sb 62 log.c log.start = sb.logstart; sb 63 log.c log.size = sb.nlog; sb 30 mkfs.c struct superblock sb; sb 97 mkfs.c sb.size = xint(FSSIZE); sb 98 mkfs.c sb.nblocks = xint(nblocks); sb 99 mkfs.c sb.ninodes = xint(NINODES); sb 100 mkfs.c sb.nlog = xint(nlog); sb 101 mkfs.c sb.logstart = xint(2); sb 102 mkfs.c sb.inodestart = xint(2+nlog); sb 103 mkfs.c sb.bmapstart = xint(2+nlog+ninodeblocks); sb 114 mkfs.c memmove(buf, &sb, sizeof(sb)); sb 190 mkfs.c bn = IBLOCK(inum, sb); sb 204 mkfs.c bn = IBLOCK(inum, sb); sb 249 mkfs.c printf("balloc: write bitmap block at sector %d\n", sb.bmapstart); sb 250 mkfs.c wsect(sb.bmapstart, buf);