/freebsd/tests/sys/cddl/zfs/tests/compression/ |
H A D | compress_004_pos.ksh | 93 typeset -i blknum=0 124 (( blknum = avail / blksize )) 126 (( blknum = blknum % 9 )) 127 while (( blknum < 2 )); do 128 (( blknum = blknum + $RANDOM % 9 )) 130 if (( (blknum % 2) == 0 )); then 131 (( blknum = blknum + 1 )) # keep blknum as odd 133 (( fsize = blknum * blksize ))
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/compression/ |
H A D | compress_004_pos.ksh | 92 typeset -i blknum=0 123 (( blknum = avail / blksize )) 125 (( blknum = blknum % 9 )) 126 while (( blknum < 2 )); do 127 (( blknum = blknum + $RANDOM % 9 )) 129 if (( (blknum % 2) == 0 )); then 130 (( blknum = blknum + 1 )) # keep blknum as odd 132 (( fsize = blknum * blksize ))
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 439 size_t blknum = *blknump; in tarfs_alloc_one() local 459 TARFS_BLOCKSIZE * blknum, TARFS_BLOCKSIZE); in tarfs_alloc_one() 466 blknum++; in tarfs_alloc_one() 473 __func__, TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() 477 TARFS_BLOCKSIZE * blknum); in tarfs_alloc_one() 478 tmp->nblocks = blknum; in tarfs_alloc_one() 492 TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() 497 __func__, TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() 505 __func__, TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() 514 __func__, TARFS_BLOCKSIZE * (blknum - 1)); in tarfs_alloc_one() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/reservation/ |
H A D | reservation_017_pos.ksh | 75 typeset -l blknum=0 79 (( blknum = vsize / vblksize1 )) 83 (( randomblknum = 1 + $RANDOM % $blknum ))
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/reservation/ |
H A D | reservation_017_pos.ksh | 78 typeset blknum=0 80 ((blknum = vsize / volblocksize)) 83 ((randomblknum = 1 + RANDOM % blknum))
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_htree.c | 788 uint32_t blksize, blknum; in ext2_htree_add_entry() local 828 blknum = dirsize / blksize - 1; in ext2_htree_add_entry() 876 split_hash, blknum); in ext2_htree_add_entry() 900 ext2_htree_set_block(entries, blknum); in ext2_htree_add_entry() 912 blknum = ext2_htree_get_block(leaf_node); in ext2_htree_add_entry() 913 error = ext2_blkatoff(dvp, blknum * blksize, NULL, &bp); in ext2_htree_add_entry() 924 blknum = dirsize / blksize - 1; in ext2_htree_add_entry() 927 ext2_htree_insert_entry(&info, split_hash, blknum); in ext2_htree_add_entry()
|
/freebsd/stand/libsa/ |
H A D | dosfs.c | 160 dos_read_fatblk(DOS_FS *fs, struct open_file *fd, u_int blknum) in dos_read_fatblk() argument 166 offset_in_fat = ((daddr_t)blknum) * FATBLKSZ; in dos_read_fatblk() 185 fs->fatbuf_blknum = blknum; in dos_read_fatblk() 857 u_int val_in, val_out, offset, blknum, nbyte; in fatget() local 871 blknum = offset / FATBLKSZ; in fatget() 875 if (blknum != fs->fatbuf_blknum) { in fatget() 876 err = dos_read_fatblk(fs, fs->fd, blknum); in fatget()
|
/freebsd/sbin/fsdb/ |
H A D | fsdb.c | 56 static int find_blks32(uint32_t *buf, int size, uint32_t *blknum); 57 static int find_blks64(uint64_t *buf, int size, uint64_t *blknum); 58 static int find_indirblks32(uint32_t blk, int ind_level, uint32_t *blknum); 59 static int find_indirblks64(uint64_t blk, int ind_level, uint64_t *blknum);
|
/freebsd/tests/sys/cddl/zfs/include/ |
H A D | libtest.kshlib | 3311 typeset -li blknum=0 3345 log_debug "params='$blksz/$blknum/$startoff' line='$line'" 3365 (( blknum = offset / blksz )) 3366 (( startoff = blknum * blksz ))
|
/freebsd/sys/dev/sfxge/common/ |
H A D | ef10_nic.c | 972 __in uint32_t blknum) in ef10_nic_pio_free() argument 978 (blknum >= (8 * sizeof (*map)))) { in ef10_nic_pio_free() 984 if ((*map & (1u << blknum)) == 0) { in ef10_nic_pio_free() 988 *map &= ~(1u << blknum); in ef10_nic_pio_free()
|
H A D | ef10_impl.h | 857 __in uint32_t blknum);
|
/freebsd/sbin/tunefs/ |
H A D | tunefs.c | 409 kvalue = blknum(&sblock, kvalue); in main() 411 kvalue = blknum(&sblock, sblock.fs_fpg / 2); in main()
|
/freebsd/sys/ufs/ffs/ |
H A D | fs.h | 720 #define blknum(fs, fsb) /* calculates rounddown(fsb, fs->fs_frag) */ \ 719 #define blknum( global() macro
|
H A D | ffs_alloc.c | 1920 bno = dtogd(fs, blknum(fs, bpref)); in ffs_alloccgblk() 2037 bpref = blknum(fs, bpref); in ffs_clusteralloc()
|
/freebsd/sbin/newfs/ |
H A D | mkfs.c | 459 sblock.fs_metaspace = blknum(&sblock, metaspace); in mkfs() 462 sblock.fs_metaspace = blknum(&sblock, in mkfs()
|
/freebsd/sbin/fsck_ffs/ |
H A D | inode.c | 846 relblkno = blknum(fs, bno); in snapblkfree() 971 copyblkno = blknum(fs, dbtofsb(fs, bp->b_bno)); in copyonwrite()
|
H A D | pass5.c | 147 dmax = blknum(fs, fs->fs_size + fs->fs_frag - 1); in pass5()
|
H A D | suj.c | 325 sblk = blk_lookup(blknum(fs, blk), 0); in blk_freemask() 1918 blk = blknum(fs, blkrec->jb_blkno); in blk_build()
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 388 bpref = blknum(fs, bpref); in ffs_alloccgblk()
|