/netbsd-6-1-5-RELEASE/sbin/scan_ffs/ |
H A D | scan_ffs.c | 126 #define SBPASS (SBCOUNT * SBLOCKSIZE / 512) 177 BLK_CNT - (2 * SBLOCKSIZE / 512), n, 185 BLK_CNT - (ffsize * SBLOCKSIZE / 512+128), 201 BLK_CNT - (ffsize * SBLOCKSIZE / 512)); 205 BLK_CNT - (ffsize * SBLOCKSIZE / 512 + 128)); 226 offset = (2 * SBLOCKSIZE / 512); 228 offset = (ffsize * SBLOCKSIZE / 512 + 128); 252 if ((BLK_CNT - lastblk) == (SBLOCKSIZE / 512)) { 255 } else if ((BLK_CNT - lastblk) == (SBLOCKSIZE / 170)) { 258 } else if ((BLK_CNT - lastblk) == (SBLOCKSIZE / 7 [all...] |
/netbsd-6-1-5-RELEASE/sbin/fsirand/ |
H A D | fsirand.c | 93 if (pread(fd, fs, SBLOCKSIZE, sblock_try[i]) != SBLOCKSIZE) 121 if (fs->fs_sbsize > SBLOCKSIZE) 228 char buf[SBLOCKSIZE], device[MAXPATHLEN];
|
/netbsd-6-1-5-RELEASE/usr.sbin/installboot/ |
H A D | ffs.c | 124 char sbbuf[SBLOCKSIZE]; 144 if (!ffs_read_disk_block(params, params->fstype->sblockloc, SBLOCKSIZE, 261 char sbbuf[SBLOCKSIZE]; 281 if (!ffs_read_disk_block(params, params->fstype->sblockloc, SBLOCKSIZE, 490 char sbbuf[SBLOCKSIZE]; 501 if (!ffs_read_disk_block(params, loc, SBLOCKSIZE, sbbuf))
|
/netbsd-6-1-5-RELEASE/sys/arch/x68k/stand/boot_ufs/ |
H A D | readufs_ffs.c | 32 unsigned char pad[SBLOCKSIZE]; 47 RAW_READ(&buf, (daddr_t) btodb(*sbl), SBLOCKSIZE);
|
/netbsd-6-1-5-RELEASE/sys/arch/hp700/stand/xxboot/ |
H A D | readufs_ffs.c | 30 unsigned char pad[SBLOCKSIZE]; 45 RAW_READ(&buf, (daddr_t) btodb(*sbl), SBLOCKSIZE);
|
/netbsd-6-1-5-RELEASE/sys/arch/mvme68k/stand/installboot/ |
H A D | installboot.c | 157 if (protosize > SBLOCKSIZE - DEV_BSIZE) 239 static char sblock[SBLOCKSIZE]; 284 SBLOCKSIZE, "superblock");
|
/netbsd-6-1-5-RELEASE/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 90 char pad[SBLOCKSIZE]; 149 sbsize = SBLOCKSIZE; 296 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 299 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); 431 if (sblock.fs_sbsize > SBLOCKSIZE) 432 sblock.fs_sbsize = SBLOCKSIZE; 503 if (sblock.fs_bsize < SBLOCKSIZE) 504 iobufsize = SBLOCKSIZE + 3 * sblock.fs_bsize; 519 memcpy(iobuf, writebuf, SBLOCKSIZE); 745 start = sblock.fs_bsize > SBLOCKSIZE [all...] |
/netbsd-6-1-5-RELEASE/sys/lib/libsa/ |
H A D | ufs.c | 113 #define SBLOCKSIZE LFS_SBPAD macro 529 sblock_try[i] / DEV_BSIZE, SBLOCKSIZE, fs, &buf_size); 530 if (rc != 0 || buf_size != SBLOCKSIZE) 571 fs = alloc(SBLOCKSIZE); 583 SBLOCKOFFSET / DEV_BSIZE, SBLOCKSIZE, fs, &buf_size); 586 if (buf_size != SBLOCKSIZE || 791 dealloc(fp->f_fs, SBLOCKSIZE);
|
/netbsd-6-1-5-RELEASE/sbin/fsck_ffs/ |
H A D | setup.c | 126 sblk.b_un.b_buf = malloc(SBLOCKSIZE); 127 sblock = malloc(SBLOCKSIZE); 128 asblk.b_un.b_buf = malloc(SBLOCKSIZE); 129 altsblock = malloc(SBLOCKSIZE); 439 memmove(sblk.b_un.b_fs, sblock, SBLOCKSIZE); 739 (long)SBLOCKSIZE) != 0) 750 super, (long)SBLOCKSIZE) != 0) 783 memmove(sblock, sblk.b_un.b_fs, SBLOCKSIZE); 792 if (sblock->fs_sbsize > SBLOCKSIZE) 802 sblk.b_size = SBLOCKSIZE; [all...] |
H A D | fsck.h | 161 memmove(sblk.b_un.b_fs, sblock, SBLOCKSIZE); \
|
/netbsd-6-1-5-RELEASE/sbin/tunefs/ |
H A D | tunefs.c | 329 memcpy(buf, (char *)&sblock, SBLOCKSIZE); 332 bwrite(sblockloc, buf, SBLOCKSIZE, special); 336 buf, SBLOCKSIZE, special); local 494 bread(sblock_try[i] / dev_bsize, (char *)fs, SBLOCKSIZE, file);
|
/netbsd-6-1-5-RELEASE/sbin/badsect/ |
H A D | badsect.c | 75 char fsx[SBLOCKSIZE]; 153 rdfs(sblock_try[i], SBLOCKSIZE, fs);
|
/netbsd-6-1-5-RELEASE/sbin/newfs/ |
H A D | mkfs.c | 135 char pad[SBLOCKSIZE]; 334 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), 337 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); 490 if (sblock.fs_sbsize > SBLOCKSIZE) 491 sblock.fs_sbsize = SBLOCKSIZE; 562 if (sblock.fs_bsize < SBLOCKSIZE) 563 iobufsize = SBLOCKSIZE + 3 * sblock.fs_bsize; 616 sblkoff += SBLOCKSIZE; 617 for (sz = SBLOCKSIZE; sz <= 0x10000; sz <<= 1) 939 start = sblock.fs_bsize > SBLOCKSIZE [all...] |
/netbsd-6-1-5-RELEASE/sbin/clri/ |
H A D | clri.c | 84 char *fs, sblock[SBLOCKSIZE];
|
/netbsd-6-1-5-RELEASE/usr.sbin/quot/ |
H A D | quot.c | 537 static char superblock[SBLOCKSIZE]; 562 if (pread(fd, superblock, SBLOCKSIZE, sbloc) != SBLOCKSIZE)
|
/netbsd-6-1-5-RELEASE/sys/arch/pmax/pmax/ |
H A D | disksubr.c | 165 lp->d_sbsize = SBLOCKSIZE;
|
/netbsd-6-1-5-RELEASE/lib/libc/gen/ |
H A D | disklabel.c | 161 getnumdflt(dp->d_sbsize, "sb", SBLOCKSIZE);
|
/netbsd-6-1-5-RELEASE/sbin/resize_ffs/ |
H A D | resize_ffs.c | 83 static char sbbuf[2 * SBLOCKSIZE] 2014 memcpy(oldsb, newsb, SBLOCKSIZE); 2017 writeat(where / DEV_BSIZE, newsb, SBLOCKSIZE); 2019 writeat(fsbtodb(oldsb, cgsblock(oldsb, i)), newsb, SBLOCKSIZE); local 2116 newsb = (struct fs *) (SBLOCKSIZE + (char *) &sbbuf); 2118 readat(where / DEV_BSIZE, oldsb, SBLOCKSIZE); 2163 * thing. SBLOCKSIZE may be an over-estimate, but we do this 2165 memcpy(newsb, oldsb, SBLOCKSIZE);
|
/netbsd-6-1-5-RELEASE/usr.sbin/quotacheck/ |
H A D | quotacheck.c | 86 #ifndef SBLOCKSIZE 87 # define SBLOCKSIZE SBSIZE macro 359 bread(sblock_try[i], (char *)&sblock, SBLOCKSIZE);
|
/netbsd-6-1-5-RELEASE/sys/arch/sgimips/sgimips/ |
H A D | disksubr.c | 279 lp->d_sbsize = SBLOCKSIZE;
|
/netbsd-6-1-5-RELEASE/sys/arch/mipsco/mipsco/ |
H A D | disksubr.c | 296 lp->d_sbsize = SBLOCKSIZE;
|
/netbsd-6-1-5-RELEASE/usr.sbin/dumpfs/ |
H A D | dumpfs.c | 191 if (read(fd, &afs, SBLOCKSIZE) != SBLOCKSIZE)
|
/netbsd-6-1-5-RELEASE/sys/arch/next68k/next68k/ |
H A D | disksubr.c | 52 #include <ufs/ffs/fs.h> /* XXX for SBLOCKSIZE */ 113 lp->d_sbsize = SBLOCKSIZE;
|
/netbsd-6-1-5-RELEASE/sbin/cgdconfig/ |
H A D | cgdconfig.c | 756 char buf[SBLOCKSIZE];
|
/netbsd-6-1-5-RELEASE/sys/arch/atari/atari/ |
H A D | disksubr.c | 105 lp->d_sbsize = SBLOCKSIZE;
|