Home
last modified time | relevance | path

Searched refs:blknum (Results 1 – 19 of 19) sorted by relevance

/freebsd/tests/sys/cddl/zfs/tests/compression/
H A Dcompress_004_pos.ksh93 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 Dcompress_004_pos.ksh92 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 Dtarfs_vfsops.c439 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 Dreservation_017_pos.ksh75 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 Dreservation_017_pos.ksh78 typeset blknum=0
80 ((blknum = vsize / volblocksize))
83 ((randomblknum = 1 + RANDOM % blknum))
/freebsd/sys/fs/ext2fs/
H A Dext2_htree.c788 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 Ddosfs.c160 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 Dfsdb.c56 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 Dlibtest.kshlib3311 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 Def10_nic.c972 __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 Def10_impl.h857 __in uint32_t blknum);
/freebsd/sbin/tunefs/
H A Dtunefs.c409 kvalue = blknum(&sblock, kvalue); in main()
411 kvalue = blknum(&sblock, sblock.fs_fpg / 2); in main()
/freebsd/sys/ufs/ffs/
H A Dfs.h720 #define blknum(fs, fsb) /* calculates rounddown(fsb, fs->fs_frag) */ \
719 #define blknum( global() macro
H A Dffs_alloc.c1920 bno = dtogd(fs, blknum(fs, bpref)); in ffs_alloccgblk()
2037 bpref = blknum(fs, bpref); in ffs_clusteralloc()
/freebsd/sbin/newfs/
H A Dmkfs.c459 sblock.fs_metaspace = blknum(&sblock, metaspace); in mkfs()
462 sblock.fs_metaspace = blknum(&sblock, in mkfs()
/freebsd/sbin/fsck_ffs/
H A Dinode.c846 relblkno = blknum(fs, bno); in snapblkfree()
971 copyblkno = blknum(fs, dbtofsb(fs, bp->b_bno)); in copyonwrite()
H A Dpass5.c147 dmax = blknum(fs, fs->fs_size + fs->fs_frag - 1); in pass5()
H A Dsuj.c325 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 Dffs_alloc.c388 bpref = blknum(fs, bpref); in ffs_alloccgblk()