| /NextBSD/sbin/fsirand/ |
| HD | fsirand.c | 119 char sbuf[SBLOCKSIZE], sbuftmp[SBLOCKSIZE]; in fsirand() 141 if ((n = read(devfd, (void *)sblock, SBLOCKSIZE))!=SBLOCKSIZE) { in fsirand() 143 (n < SBLOCKSIZE) ? "short read" : strerror(errno)); in fsirand() 175 } else if ((n = write(devfd, (void *)sblock, SBLOCKSIZE)) != SBLOCKSIZE) { in fsirand() 177 cg + 1, device, (n < SBLOCKSIZE) ? "short write" in fsirand() 187 if (sblock->fs_sbsize > SBLOCKSIZE) { in fsirand() 222 if ((n = write(devfd, (void *)sblock, SBLOCKSIZE)) != in fsirand() 223 SBLOCKSIZE) { in fsirand() 225 (n < SBLOCKSIZE) ? "short write" : strerror(errno)); in fsirand() 240 SBLOCKSIZE)) != SBLOCKSIZE) { in fsirand() [all …]
|
| /NextBSD/sys/geom/journal/ |
| HD | g_journal_ufs.c | 73 if (SBLOCKSIZE % cp->provider->sectorsize != 0) in g_journal_ufs_dirty() 78 fs = g_read_data(cp, sb, SBLOCKSIZE, NULL); in g_journal_ufs_dirty() 89 error = g_write_data(cp, sb, fs, SBLOCKSIZE); in g_journal_ufs_dirty()
|
| /NextBSD/tools/tools/find-sb/ |
| HD | find-sb.c | 26 char buf[SBLOCKSIZE]; 127 if (len >= SBLOCKSIZE) { in main() 129 SBLOCKSIZE - DEV_BSIZE); in main()
|
| HD | mini_ufs.h | 20 #define SBLOCKSIZE 8192 macro
|
| /NextBSD/lib/libufs/ |
| HD | sblock.c | 65 if (bread(disk, superblock, disk->d_sb, SBLOCKSIZE) == -1) { in sbread() 140 if (bwrite(disk, disk->d_sblock, fs, SBLOCKSIZE) == -1) { in sbwrite() 163 fs, SBLOCKSIZE) == -1) { in sbwrite()
|
| /NextBSD/sbin/fsck_ffs/ |
| HD | setup.c | 325 if ((blread(fsreadfd, (char *)&sblock, super, (long)SBLOCKSIZE))) in readsb() 342 (long)SBLOCKSIZE))) in readsb() 369 sblk.b_size = SBLOCKSIZE; in readsb() 444 sblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init() 445 asblk.b_un.b_buf = Malloc(SBLOCKSIZE); in sblock_init()
|
| HD | main.c | 544 SBLOCKSIZE); in checkfilesys()
|
| /NextBSD/usr.sbin/makefs/ffs/ |
| HD | mkfs.c | 82 char pad[SBLOCKSIZE]; 141 sbsize = SBLOCKSIZE; in ffs_mkfs() 284 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in ffs_mkfs() 287 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag)); in ffs_mkfs() 419 if (sblock.fs_sbsize > SBLOCKSIZE) in ffs_mkfs() 420 sblock.fs_sbsize = SBLOCKSIZE; in ffs_mkfs() 491 if (sblock.fs_bsize < SBLOCKSIZE) in ffs_mkfs() 492 iobufsize = SBLOCKSIZE + 3 * sblock.fs_bsize; in ffs_mkfs() 507 memcpy(iobuf, writebuf, SBLOCKSIZE); in ffs_mkfs() 733 start = sblock.fs_bsize > SBLOCKSIZE ? sblock.fs_bsize : SBLOCKSIZE; in initcg()
|
| /NextBSD/sbin/newfs/ |
| HD | mkfs.c | 108 return (pwrite(disk->d_fd, &disk->d_fs, SBLOCKSIZE, (off_t)((part_ofs + in do_sbwrite() 126 char cdummy[SBLOCKSIZE]; in mkfs() 299 roundup(howmany(sblock.fs_sblockloc + SBLOCKSIZE, sblock.fs_fsize), in mkfs() 302 roundup(howmany(SBLOCKSIZE, sblock.fs_fsize), sblock.fs_frag); in mkfs() 442 if (sblock.fs_sbsize > SBLOCKSIZE) in mkfs() 443 sblock.fs_sbsize = SBLOCKSIZE; in mkfs() 516 i = bread(&disk, part_ofs + SBLOCK_UFS1 / disk.d_bsize, chdummy, SBLOCKSIZE); in mkfs() 523 chdummy, SBLOCKSIZE); in mkfs() 528 cgsblock(&fsdummy, cg)), chdummy, SBLOCKSIZE); in mkfs() 554 if (sblock.fs_bsize < SBLOCKSIZE) in mkfs() [all …]
|
| /NextBSD/sys/geom/ |
| HD | geom_vol_ffs.c | 101 SBLOCKSIZE % cp->provider->sectorsize != 0) in g_vol_ffs_taste() 105 SBLOCKSIZE, NULL); in g_vol_ffs_taste()
|
| /NextBSD/sys/geom/label/ |
| HD | g_label_ufs.c | 61 if (SBLOCKSIZE % cp->provider->sectorsize != 0) in g_label_ufs_taste_common() 81 fs = (struct fs *)g_read_data(cp, superblock, SBLOCKSIZE, NULL); in g_label_ufs_taste_common()
|
| /NextBSD/usr.sbin/fstyp/ |
| HD | ufs.c | 62 fs = (struct fs *)read_buf(fp, superblock, SBLOCKSIZE); in fstyp_ufs()
|
| /NextBSD/sys/boot/common/ |
| HD | ufsread.c | 85 char sbbuf[SBLOCKSIZE]; /* superblock */ 194 SBLOCKSIZE / DEV_BSIZE)) in fsread()
|
| /NextBSD/usr.sbin/quot/ |
| HD | quot.c | 540 static char superblock[SBLOCKSIZE]; 561 if (read(fd, superblock, SBLOCKSIZE) != SBLOCKSIZE) { in quot()
|
| /NextBSD/sbin/clri/ |
| HD | clri.c | 83 char *fs, sblock[SBLOCKSIZE]; in main()
|
| /NextBSD/lib/libstand/ |
| HD | ufs.c | 516 fs = malloc(SBLOCKSIZE); 524 sblock_try[i] / DEV_BSIZE, SBLOCKSIZE, 531 buf_size == SBLOCKSIZE &&
|
| /NextBSD/sbin/ffsinfo/ |
| HD | ffsinfo.c | 90 char pad[SBLOCKSIZE]; 280 (void *)&osblock, SBLOCKSIZE) == -1) in main()
|
| /NextBSD/sbin/dump/ |
| HD | main.c | 440 sblock->fs_fsize = SBLOCKSIZE; /* needed in bread */ in main() 441 bread(sblock_try[i] >> dev_bshift, (char *) sblock, SBLOCKSIZE); in main()
|
| /NextBSD/sbin/growfs/ |
| HD | growfs.c | 90 char pad[SBLOCKSIZE]; 261 wtfs(sblockloc, (size_t)SBLOCKSIZE, (void *)&sblock, fso, Nflag); in growfs() 302 (size_t)SBLOCKSIZE, (void *)&sblock, fso, Nflag); in growfs() 1452 rdfs(sblockloc, (size_t)SBLOCKSIZE, (void *)&(osblock), fsi); in main()
|
| /NextBSD/sys/boot/efi/boot1/ |
| HD | boot1.c | 181 SBLOCKSIZE / DEV_BSIZE)) in fsstat()
|
| /NextBSD/sys/ufs/ffs/ |
| HD | ffs_vfsops.c | 789 if ((SBLOCKSIZE % cp->provider->sectorsize) != 0) { 793 cp->provider->sectorsize, SBLOCKSIZE); 796 if ((error = bread(devvp, btodb(sblock_try[i]), SBLOCKSIZE, 898 if (fs->fs_sbsize < SBLOCKSIZE)
|
| HD | fs.h | 75 #define SBLOCKSIZE 8192 macro
|
| HD | ffs_snapshot.c | 478 size = fs->fs_bsize < SBLOCKSIZE ? fs->fs_bsize : SBLOCKSIZE;
|
| /NextBSD/sbin/quotacheck/ |
| HD | quotacheck.c | 326 bread(sblock_try[i], (char *)&sblock, (long)SBLOCKSIZE); in chkquota()
|
| /NextBSD/usr.sbin/makefs/ |
| HD | ffs.c | 396 fsopts->size += (SBLOCK_UFS1 + SBLOCKSIZE) * ncg; in ffs_validate()
|