Home
last modified time | relevance | path

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

12

/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/
H A Dzpool_set_ashift.ksh69 for ashift in ${goodvals[@]}
71 log_must zpool set ashift=$ashift $TESTPOOL1
72 typeset value=$(get_pool_prop ashift $TESTPOOL1)
73 if [[ "$ashift" != "$value" ]]; then
74 log_fail "'zpool set' did not update ashift value to $ashift "\
79 for ashift in ${badvals[@]}
81 log_mustnot zpool set ashift=$ashift $TESTPOOL1
82 typeset value=$(get_pool_prop ashift $TESTPOOL1)
83 if [[ "$ashift" == "$value" ]]; then
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dadd_prop_ashift.ksh69 for ashift in ${ashifts[@]}
71 if [ $ashift -eq $orig_ashift ];then
76 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1
78 log_must verify_ashift $disk2 $ashift
86 for ashift in ${ashifts[@]}
90 if [ $ashift -eq $cmdval ];then
95 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1
96 log_must zpool add $opt -o ashift=$cmdval $TESTPOOL $disk2
H A Dadd-o_ashift.ksh66 for ashift in ${ashifts[@]}
72 if [[ $ashift -eq $orig_ashift ]]; then
79 log_must zpool add $opt -o ashift=$ashift $TESTPOOL $disk2
80 log_must verify_ashift $disk2 $ashift
91 log_must set_tunable32 VDEV_FILE_PHYSICAL_ASHIFT $ashift
93 exp=$(( (ashift <= max_auto_ashift) ? ashift : logical_ashift ))
107 log_mustnot zpool add -o ashift="$badval" $TESTPOOL $disk2
H A Dzpool_add_004_pos.ksh73 log_must zpool add --allow-ashift-mismatch $TESTPOOL $ZVOL_DEVDIR/$TESTPOOL1/$TESTVOL
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dcreate-o_ashift.ksh104 typeset ashift=${ashifts[$i]}
105 log_must zpool create -o ashift=$ashift $TESTPOOL $disk
106 typeset pprop=$(get_pool_prop ashift $TESTPOOL)
107 verify_ashift $disk $ashift
108 if [[ $? -ne 0 || "$pprop" != "$ashift" ]]
111 "$ashift (current = $pprop)"
126 log_mustnot zpool create -o ashift="$badval" $TESTPOOL $disk
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_attach/
H A Dattach-o_ashift.ksh67 for ashift in ${ashifts[@]}
69 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
70 log_must verify_ashift $disk1 $ashift
72 log_must verify_ashift $disk2 $ashift
83 log_mustnot zpool attach -o ashift=$badval $TESTPOOL1 $disk1 $disk2
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_replace/
H A Dreplace-o_ashift.ksh67 for ashift in ${ashifts[@]}
69 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
70 log_must verify_ashift $disk1 $ashift
73 log_must verify_ashift $disk2 $ashift
85 log_mustnot zpool replace -o ashift=$badval $TESTPOOL1 $disk1 $disk2
H A Dreplace_prop_ashift.ksh67 for ashift in ${ashifts[@]}
71 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
72 log_must zpool set ashift=$pprop $TESTPOOL1
75 log_must verify_ashift $disk2 $ashift
/freebsd-14.2/usr.sbin/makefs/zfs/
H A Dvdev.c97 assert(bit_ntest(zfs->spacemap, off >> zfs->ashift, in vdev_pwrite()
98 (off + len - 1) >> zfs->ashift, 1)); in vdev_pwrite()
202 blksz = 1 << zfs->ashift; in vdev_label_write()
240 minblksz = 1 << zfs->ashift; in vdev_space_alloc()
269 return ((off_t)loc << zfs->ashift); in vdev_space_alloc()
279 nbits = rounddown2(zfs->asize, zfs->mssize) >> zfs->ashift; in vdev_spacemap_init()
319 smblksz = 1 << zfs->ashift; in vdev_spacemap_write()
355 shift = zfs->msshift - zfs->ashift; in vdev_spacemap_write()
385 alloc += runlen << zfs->ashift; in vdev_spacemap_write()
415 assert(zfs->ashift >= MINBLOCKSHIFT); in vdev_init()
/freebsd-14.2/sys/contrib/openzfs/cmd/
H A Dzhack.c497 #define ASHIFT_UBERBLOCK_SHIFT(ashift) \ argument
498 MIN(MAX(ashift, UBERBLOCK_SHIFT), \
500 #define ASHIFT_UBERBLOCK_SIZE(ashift) \ argument
501 (1ULL << ASHIFT_UBERBLOCK_SHIFT(ashift))
554 uint64_t *ashift) in zhack_repair_check_label() argument
590 ZPOOL_CONFIG_ASHIFT, ashift); in zhack_repair_check_label()
598 if (*ashift == 0) { in zhack_repair_check_label()
681 const uint64_t ashift, const int fd, const int byteswap, in zhack_repair_write_uberblock() argument
707 ASHIFT_UBERBLOCK_SIZE(ashift))) in zhack_repair_write_uberblock()
772 uint64_t ashift; in zhack_repair_one_label() local
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/zfs/
H A Dvdev_raidz.c298 uint64_t b = zio->io_offset >> ashift; in vdev_raidz_map_alloc()
300 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc()
304 uint64_t o = (b / dcols) << ashift; in vdev_raidz_map_alloc()
371 coff += 1ULL << ashift; in vdev_raidz_map_alloc()
387 rc->rc_size = (q + 1) << ashift; in vdev_raidz_map_alloc()
389 rc->rc_size = q << ashift; in vdev_raidz_map_alloc()
394 ASSERT3U(asize, ==, tot << ashift); in vdev_raidz_map_alloc()
1570 asize = ((psize - 1) >> ashift) + 1; in vdev_raidz_asize()
1660 rc->rc_offset, NULL, 1ULL << ashift, in vdev_raidz_io_start_write()
2490 uint64_t s = ((psize - 1) >> ashift) + 1; in vdev_raidz_need_resilver()
[all …]
H A Dvdev_draid.c583 uint64_t ashift = vd->vdev_ashift; in vdev_draid_asize() local
903 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() local
952 (b_offset / groupwidth)) << ashift); in vdev_draid_logical_to_physical()
1005 const uint64_t psize = io_size >> ashift; in vdev_draid_map_alloc_row()
1068 rc->rc_size = (q + 1) << ashift; in vdev_draid_map_alloc_row()
1070 rc->rc_size = q << ashift; in vdev_draid_map_alloc_row()
1075 ASSERT3U(asize, ==, tot << ashift); in vdev_draid_map_alloc_row()
1632 uint64_t ashift = vd->vdev_ashift; in vdev_draid_rebuild_asize() local
1641 psize = (((psize >> ashift) / ndata) * ndata) << ashift; in vdev_draid_rebuild_asize()
2168 (logical_start >> ashift); in vdev_draid_xlate()
[all …]
H A Dvdev_missing.c47 uint64_t *ashift, uint64_t *pshift) in vdev_missing_open() argument
58 *ashift = 0; in vdev_missing_open()
H A Dvdev_root.c85 uint64_t *ashift, uint64_t *pshift) in vdev_root_open() argument
118 *ashift = 0; in vdev_root_open()
/freebsd-14.2/usr.sbin/makefs/
H A Dzfs.c92 { '\0', "ashift", &zfs->ashift, OPT_INT32, in zfs_prep_opts()
148 assert(zfs->ashift != 0); in zfs_size_vdev()
153 vdevsize = rounddown2(fsopts->maxsize, 1 << zfs->ashift); in zfs_size_vdev()
158 1 << zfs->ashift); in zfs_size_vdev()
240 if (zfs->ashift == 0) in zfs_check_opts()
241 zfs->ashift = 12; in zfs_check_opts()
326 nvlist_add_uint64(diskvdevnv, ZPOOL_CONFIG_ASHIFT, zfs->ashift); in pool_disk_vdev_config_nvcreate()
595 uoff += (1 << zfs->ashift)) { in pool_labels_write()
653 blksz = MIN(MAXBLOCKSIZE, MAX(1 << zfs->ashift, in dnode_cursor_init()
/freebsd-14.2/sys/contrib/openzfs/cmd/raidz_test/
H A Draidz_test.c376 uint64_t ashift, uint64_t physical_cols, uint64_t logical_cols, in vdev_raidz_map_alloc_expanded() argument
380 uint64_t s = size >> ashift; in vdev_raidz_map_alloc_expanded()
419 uint64_t b = (offset >> ashift) + row * logical_cols; in vdev_raidz_map_alloc_expanded()
427 if (b + (logical_cols - nparity) > reflow_offset >> ashift) in vdev_raidz_map_alloc_expanded()
433 uint64_t child_offset = (b / row_phys_cols) << ashift; in vdev_raidz_map_alloc_expanded()
460 child_offset += 1ULL << ashift; in vdev_raidz_map_alloc_expanded()
472 rr->rr_col[c].rc_size = 1ULL << ashift; in vdev_raidz_map_alloc_expanded()
495 rr->rr_col[c].rc_size = 1ULL << ashift; in vdev_raidz_map_alloc_expanded()
498 abd, off << ashift, 1 << ashift); in vdev_raidz_map_alloc_expanded()
537 ASSERT3U(asize, ==, tot << ashift); in vdev_raidz_map_alloc_expanded()
/freebsd-14.2/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c279 uint64_t ashift = 0; in make_leaf_vdev() local
391 if (zfs_nicestrtonum(NULL, value, &ashift) != 0) { in make_leaf_vdev()
396 if (ashift != 0 && in make_leaf_vdev()
397 (ashift < ASHIFT_MIN || ashift > ASHIFT_MAX)) { in make_leaf_vdev()
402 ashift, ASHIFT_MIN, ASHIFT_MAX); in make_leaf_vdev()
412 if (ashift == 0) { in make_leaf_vdev()
416 ashift = highbit64(sector_size) - 1; in make_leaf_vdev()
419 if (ashift > 0) in make_leaf_vdev()
420 (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); in make_leaf_vdev()
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_raw_ashift.ksh158 log_must zpool create -f -o ashift=9 pool9 $TESTDIR/vdev_a
159 log_must zpool create -f -o ashift=12 pool12 $TESTDIR/vdev_b
/freebsd-14.2/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib3181 typeset -i ashift=$3
3184 (( offset >>= ashift ))
3189 (( ioff += ( 4194304 >> $ashift ) ))
3290 ashift=$(get_tvd_prop $lvd $tvd ashift)
3291 log_debug "raidz: ashift='${ashift}'"
3292 off=$(raidz_dva_to_block_addr $dva $nchildren $ashift)
3295 ashift=9
3299 echo "${lvd}:${ashift}:${off}"
3400 ashift=$(echo $vdoff | cut -d: -f2)
3402 blocksize=$(( 1 << $ashift ))
[all …]
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/no_space/
H A Denospc_003_pos.ksh57 log_must zpool create -o ashift=13 $TESTPOOL1 $DISK_LARGE
/freebsd-14.2/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_retire.c253 int ashift; in replace_with_spare() local
270 ashift = zpool_get_prop_int(zhp, ZPOOL_PROP_ASHIFT, &source); in replace_with_spare()
299 ZPOOL_CONFIG_ASHIFT, ashift); in replace_with_spare()
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/
H A Dauto_spare_ashift.ksh70 log_must zpool set ashift=9 $TESTPOOL
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/l2arc/
H A Dpersist_l2arc_001_pos.ksh79 log_must zpool create -f -o ashift=12 $TESTPOOL $VDEV
/freebsd-14.2/sys/netpfil/pf/
H A Dpf_lb.c340 int ashift, psidshift; in pf_get_mape_sport() local
342 ashift = 16 - r->rpool.mape.offset; in pf_get_mape_sport()
343 psidshift = ashift - r->rpool.mape.psidlen; in pf_get_mape_sport()
354 low = (i << ashift) | psmask; in pf_get_mape_sport()
360 low = (i << ashift) | psmask; in pf_get_mape_sport()
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/
H A Dbclone.cfg26 # TODO: We should calculate that based on ashift.

12