Searched refs:SBLOCKSIZE (Results 1 - 25 of 35) sorted by relevance

12

/netbsd-6-1-5-RELEASE/sbin/scan_ffs/
H A Dscan_ffs.c126 #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 Dfsirand.c93 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 Dffs.c124 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 Dreadufs_ffs.c32 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 Dreadufs_ffs.c30 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 Dinstallboot.c157 if (protosize > SBLOCKSIZE - DEV_BSIZE)
239 static char sblock[SBLOCKSIZE];
284 SBLOCKSIZE, "superblock");
/netbsd-6-1-5-RELEASE/usr.sbin/makefs/ffs/
H A Dmkfs.c90 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 Dufs.c113 #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 Dsetup.c126 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 Dfsck.h161 memmove(sblk.b_un.b_fs, sblock, SBLOCKSIZE); \
/netbsd-6-1-5-RELEASE/sbin/tunefs/
H A Dtunefs.c329 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 Dbadsect.c75 char fsx[SBLOCKSIZE];
153 rdfs(sblock_try[i], SBLOCKSIZE, fs);
/netbsd-6-1-5-RELEASE/sbin/newfs/
H A Dmkfs.c135 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 Dclri.c84 char *fs, sblock[SBLOCKSIZE];
/netbsd-6-1-5-RELEASE/usr.sbin/quot/
H A Dquot.c537 static char superblock[SBLOCKSIZE];
562 if (pread(fd, superblock, SBLOCKSIZE, sbloc) != SBLOCKSIZE)
/netbsd-6-1-5-RELEASE/sys/arch/pmax/pmax/
H A Ddisksubr.c165 lp->d_sbsize = SBLOCKSIZE;
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Ddisklabel.c161 getnumdflt(dp->d_sbsize, "sb", SBLOCKSIZE);
/netbsd-6-1-5-RELEASE/sbin/resize_ffs/
H A Dresize_ffs.c83 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 Dquotacheck.c86 #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 Ddisksubr.c279 lp->d_sbsize = SBLOCKSIZE;
/netbsd-6-1-5-RELEASE/sys/arch/mipsco/mipsco/
H A Ddisksubr.c296 lp->d_sbsize = SBLOCKSIZE;
/netbsd-6-1-5-RELEASE/usr.sbin/dumpfs/
H A Ddumpfs.c191 if (read(fd, &afs, SBLOCKSIZE) != SBLOCKSIZE)
/netbsd-6-1-5-RELEASE/sys/arch/next68k/next68k/
H A Ddisksubr.c52 #include <ufs/ffs/fs.h> /* XXX for SBLOCKSIZE */
113 lp->d_sbsize = SBLOCKSIZE;
/netbsd-6-1-5-RELEASE/sbin/cgdconfig/
H A Dcgdconfig.c756 char buf[SBLOCKSIZE];
/netbsd-6-1-5-RELEASE/sys/arch/atari/atari/
H A Ddisksubr.c105 lp->d_sbsize = SBLOCKSIZE;

Completed in 398 milliseconds

12