Home
last modified time | relevance | path

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

/NextBSD/sbin/fsirand/
HDfsirand.c119 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/
HDg_journal_ufs.c73 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/
HDfind-sb.c26 char buf[SBLOCKSIZE];
127 if (len >= SBLOCKSIZE) { in main()
129 SBLOCKSIZE - DEV_BSIZE); in main()
HDmini_ufs.h20 #define SBLOCKSIZE 8192 macro
/NextBSD/lib/libufs/
HDsblock.c65 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/
HDsetup.c325 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()
HDmain.c544 SBLOCKSIZE); in checkfilesys()
/NextBSD/usr.sbin/makefs/ffs/
HDmkfs.c82 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/
HDmkfs.c108 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/
HDgeom_vol_ffs.c101 SBLOCKSIZE % cp->provider->sectorsize != 0) in g_vol_ffs_taste()
105 SBLOCKSIZE, NULL); in g_vol_ffs_taste()
/NextBSD/sys/geom/label/
HDg_label_ufs.c61 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/
HDufs.c62 fs = (struct fs *)read_buf(fp, superblock, SBLOCKSIZE); in fstyp_ufs()
/NextBSD/sys/boot/common/
HDufsread.c85 char sbbuf[SBLOCKSIZE]; /* superblock */
194 SBLOCKSIZE / DEV_BSIZE)) in fsread()
/NextBSD/usr.sbin/quot/
HDquot.c540 static char superblock[SBLOCKSIZE];
561 if (read(fd, superblock, SBLOCKSIZE) != SBLOCKSIZE) { in quot()
/NextBSD/sbin/clri/
HDclri.c83 char *fs, sblock[SBLOCKSIZE]; in main()
/NextBSD/lib/libstand/
HDufs.c516 fs = malloc(SBLOCKSIZE);
524 sblock_try[i] / DEV_BSIZE, SBLOCKSIZE,
531 buf_size == SBLOCKSIZE &&
/NextBSD/sbin/ffsinfo/
HDffsinfo.c90 char pad[SBLOCKSIZE];
280 (void *)&osblock, SBLOCKSIZE) == -1) in main()
/NextBSD/sbin/dump/
HDmain.c440 sblock->fs_fsize = SBLOCKSIZE; /* needed in bread */ in main()
441 bread(sblock_try[i] >> dev_bshift, (char *) sblock, SBLOCKSIZE); in main()
/NextBSD/sbin/growfs/
HDgrowfs.c90 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/
HDboot1.c181 SBLOCKSIZE / DEV_BSIZE)) in fsstat()
/NextBSD/sys/ufs/ffs/
HDffs_vfsops.c789 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)
HDfs.h75 #define SBLOCKSIZE 8192 macro
HDffs_snapshot.c478 size = fs->fs_bsize < SBLOCKSIZE ? fs->fs_bsize : SBLOCKSIZE;
/NextBSD/sbin/quotacheck/
HDquotacheck.c326 bread(sblock_try[i], (char *)&sblock, (long)SBLOCKSIZE); in chkquota()
/NextBSD/usr.sbin/makefs/
HDffs.c396 fsopts->size += (SBLOCK_UFS1 + SBLOCKSIZE) * ncg; in ffs_validate()