/src/sbin/clri/ |
clri.c | 87 long dev_bsize; local in function:main 158 dev_bsize = sbp->fs_fsize / FFS_FSBTODB(sbp, 1); 175 offset *= dev_bsize; /* disk blk to bytes */
|
/src/sbin/badsect/ |
badsect.c | 86 static off_t dev_bsize = 1; variable in typeref:typename:off_t 182 dev_bsize = fs->fs_fsize / FFS_FSBTODB(fs, 1); 255 if (lseek(fsi, bno * dev_bsize, SEEK_SET) == -1)
|
/src/sbin/fsck_ext2fs/ |
main.c | 102 long dev_bsize; variable in typeref:typename:long
|
/src/sbin/tunefs/ |
tunefs.c | 82 long dev_bsize = 512; variable in typeref:typename:long 295 warnx("sector size must be at least %d", DEV_BSIZE); 454 /* write superblock to original coordinates (use old dev_bsize!) */ 469 /* correct dev_bsize from possibly changed superblock data */ 470 dev_bsize = sblock.fs_fsize / FFS_FSBTODB(&sblock, 1); 665 bread(sblock_try[i] / dev_bsize, (char *)fs, SBLOCKSIZE, file); 697 dev_bsize = fs->fs_fsize / FFS_FSBTODB(fs, 1); 698 sblockloc = sblock_try[i] / dev_bsize; 706 offset = (off_t)blk * dev_bsize; 719 offset = (off_t)blk * dev_bsize; [all...] |
/src/sbin/fsck_lfs/ |
lfs.c | 98 long dev_bsize = DEV_BSIZE; variable in typeref:typename:long 117 bp->b_blkno * dev_bsize); 122 bp->b_blkno * dev_bsize); 490 sblkno = LFS_LABELPAD / dev_bsize; 495 sblkno = LFS_LABELPAD / dev_bsize; 501 dev_bsize = DEV_BSIZE; 511 dev_bsize = lfs_sb_getfsize(fs) >> lfs_sb_getfsbtodb(fs);
|
/src/sys/fs/nilfs/ |
nilfs_vfsops.c | 377 int dev_bsize, dev_blks; local in function:nilfs_read_superblock 384 dev_bsize = 1 << nilfsdev->devvp->v_mount->mnt_fs_bshift; 388 dev_blks = (sb1off + dev_bsize -1)/dev_bsize; 389 error = bread(nilfsdev->devvp, dev_blk, dev_blks * dev_bsize, 0, &bp); 401 dev_blk = sb2off / dev_bsize; 402 dev_blks = 2; /* assumption max one dev_bsize */ 403 error = bread(nilfsdev->devvp, dev_blk, dev_blks * dev_bsize, 0, &bp);
|
/src/sbin/fsck_ffs/ |
main.c | 94 long dev_bsize; variable in typeref:typename:long
|
/src/usr.sbin/dumpfs/ |
dumpfs.c | 105 static long dev_bsize = 512; variable in typeref:typename:long 226 dev_bsize = afs.fs_fsize / FFS_FSBTODB(&afs, 1); 312 (long long)sblock, (long long)(sblock/dev_bsize)); 510 dev_bsize, SEEK_SET) == (off_t)-1) 549 loc = (off_t)(FFS_FSBTODB(&afs, cgsblock(&afs, i))) * dev_bsize; 617 if ((cur = lseek(fd, (off_t)(FFS_FSBTODB(&afs, cgtod(&afs, c))) * dev_bsize,
|
/src/sbin/dump/ |
main.c | 116 long dev_bsize = 1; /* recalculated below */ variable in typeref:typename:long 163 if (TP_BSIZE / DEV_BSIZE == 0 || TP_BSIZE % DEV_BSIZE != 0) 164 quit("TP_BSIZE must be a multiple of DEV_BSIZE"); 556 dev_bshift = ffs(dev_bsize) - 1; 557 if (dev_bsize != (1 << dev_bshift)) 558 quit("dev_bsize (%ld) is not a power of 2", dev_bsize);
|
/src/usr.sbin/quotacheck/ |
quotacheck.c | 101 static long dev_bsize; variable in typeref:typename:long 359 dev_bsize = 1; 417 dev_bsize = sblock.fs_fsize / FFS_FSBTODB(&sblock, 1); 861 if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 ||
|
/src/sbin/fsdb/ |
fsdb.c | 86 long dev_bsize; variable in typeref:typename:long 881 rsize = roundup(size, DEV_BSIZE);
|