Home
last modified time | relevance | path

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

/f-stack/freebsd/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
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_replace/
H A Dreplace_prop_ashift.ksh69 for ashift in ${ashifts[@]}
73 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
74 log_must zpool set ashift=$pprop $TESTPOOL1
76 if [[ $pprop -le $ashift ]]
80 verify_ashift $disk2 $ashift
84 "setting ashift value to $ashift"
90 log_must zpool replace -o ashift=$ashift $TESTPOOL1 \
93 verify_ashift $disk2 $ashift
97 "setting ashift value to $ashift"
H A Dreplace-o_ashift.ksh67 for ashift in ${ashifts[@]}
71 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
72 verify_ashift $disk1 $ashift
76 "value to $ashift"
79 if [[ $cmdval -le $ashift ]]
81 log_must zpool replace -o ashift=$cmdval $TESTPOOL1 \
83 verify_ashift $disk2 $ashift
87 "setting ashift value to $ashift"
91 log_mustnot zpool replace -o ashift=$cmdval $TESTPOOL1 \
105 log_mustnot zpool replace -o ashift=$badval $TESTPOOL1 $disk1 $disk2
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_attach/
H A Dattach-o_ashift.ksh67 for ashift in ${ashifts[@]}
71 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
72 verify_ashift $disk1 $ashift
76 "value to $ashift"
79 if [[ $cmdval -le $ashift ]]
81 log_must zpool attach -o ashift=$cmdval $TESTPOOL1 \
83 verify_ashift $disk2 $ashift
87 "setting ashift value to $ashift"
90 log_mustnot zpool attach -o ashift=$cmdval $TESTPOOL1 \
104 log_mustnot zpool attach -o ashift=$badval $TESTPOOL1 $disk1 $disk2
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dadd_prop_ashift.ksh69 for ashift in ${ashifts[@]}
71 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1
73 verify_ashift $disk2 $ashift
77 "$ashift"
85 for ashift in ${ashifts[@]}
89 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1
90 log_must zpool add -o ashift=$cmdval $TESTPOOL $disk2
H A Dadd-o_ashift.ksh63 for ashift in ${ashifts[@]}
66 log_must zpool add -o ashift=$ashift $TESTPOOL $disk2
67 verify_ashift $disk2 $ashift
71 "$ashift"
82 log_must set_tunable64 VDEV_FILE_PHYSICAL_ASHIFT $ashift
84 verify_ashift $disk2 $ashift
88 "$ashift"
101 log_mustnot zpool add -o ashift="$badval" $TESTPOOL $disk2
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dcreate-o_ashift.ksh107 typeset ashift=${ashifts[$i]}
108 log_must zpool create -o ashift=$ashift $TESTPOOL $disk
109 typeset pprop=$(get_pool_prop ashift $TESTPOOL)
110 verify_ashift $disk $ashift
111 if [[ $? -ne 0 || "$pprop" != "$ashift" ]]
114 "$ashift (current = $pprop)"
132 log_mustnot zpool create -o ashift="$badval" $TESTPOOL $disk
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dvdev_missing.c48 uint64_t *ashift, uint64_t *pshift) in vdev_missing_open() argument
58 *ashift = 0; in vdev_missing_open()
H A Dvdev_draid.c583 uint64_t ashift = vd->vdev_ashift; in vdev_draid_asize() local
1088 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() local
1137 (b_offset / groupwidth)) << ashift); in vdev_draid_logical_to_physical()
1190 const uint64_t psize = io_size >> ashift; in vdev_draid_map_alloc_row()
1252 rc->rc_size = (q + 1) << ashift; in vdev_draid_map_alloc_row()
1254 rc->rc_size = q << ashift; in vdev_draid_map_alloc_row()
1259 ASSERT3U(asize, ==, tot << ashift); in vdev_draid_map_alloc_row()
1812 uint64_t ashift = vd->vdev_ashift; in vdev_draid_rebuild_asize() local
1821 psize = (((psize >> ashift) / ndata) * ndata) << ashift; in vdev_draid_rebuild_asize()
2313 (logical_start >> ashift); in vdev_draid_xlate()
[all …]
H A Dvdev_root.c85 uint64_t *ashift, uint64_t *pshift) in vdev_root_open() argument
118 *ashift = 0; in vdev_root_open()
H A Dvdev_raidz.c374 uint64_t b = zio->io_offset >> ashift; in vdev_raidz_map_alloc()
376 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc()
380 uint64_t o = (b / dcols) << ashift; in vdev_raidz_map_alloc()
449 coff += 1ULL << ashift; in vdev_raidz_map_alloc()
465 rc->rc_size = (q + 1) << ashift; in vdev_raidz_map_alloc()
467 rc->rc_size = q << ashift; in vdev_raidz_map_alloc()
472 ASSERT3U(asize, ==, tot << ashift); in vdev_raidz_map_alloc()
1664 asize = ((psize - 1) >> ashift) + 1; in vdev_raidz_asize()
2582 uint64_t b = DVA_GET_OFFSET(dva) >> ashift; in vdev_raidz_need_resilver()
2584 uint64_t s = ((psize - 1) >> ashift) + 1; in vdev_raidz_need_resilver()
[all …]
H A Dmetaslab.c1015 uint64_t ashift = vd->vdev_ashift; in metaslab_group_histogram_verify() local
1025 SPACE_MAP_HISTOGRAM_SIZE + ashift); in metaslab_group_histogram_verify()
1035 mg_hist[i + ashift] += in metaslab_group_histogram_verify()
1049 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_add() local
1057 mg->mg_histogram[i + ashift] += in metaslab_group_histogram_add()
1059 mc->mc_histogram[i + ashift] += in metaslab_group_histogram_add()
1069 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_remove() local
1077 ASSERT3U(mg->mg_histogram[i + ashift], >=, in metaslab_group_histogram_remove()
1079 ASSERT3U(mc->mc_histogram[i + ashift], >=, in metaslab_group_histogram_remove()
1082 mg->mg_histogram[i + ashift] -= in metaslab_group_histogram_remove()
[all …]
/f-stack/freebsd/contrib/openzfs/cmd/raidz_test/
H A Draidz_test.c373 uint64_t ashift, uint64_t physical_cols, uint64_t logical_cols, in vdev_raidz_map_alloc_expanded() argument
377 uint64_t s = size >> ashift; in vdev_raidz_map_alloc_expanded()
416 uint64_t b = (offset >> ashift) + row * logical_cols; in vdev_raidz_map_alloc_expanded()
424 if (b + (logical_cols - nparity) > reflow_offset >> ashift) in vdev_raidz_map_alloc_expanded()
430 uint64_t child_offset = (b / row_phys_cols) << ashift; in vdev_raidz_map_alloc_expanded()
458 child_offset += 1ULL << ashift; in vdev_raidz_map_alloc_expanded()
471 rr->rr_col[c].rc_size = 1ULL << ashift; in vdev_raidz_map_alloc_expanded()
494 rr->rr_col[c].rc_size = 1ULL << ashift; in vdev_raidz_map_alloc_expanded()
496 abd_get_offset(abd, off << ashift); in vdev_raidz_map_alloc_expanded()
535 ASSERT3U(asize, ==, tot << ashift); in vdev_raidz_map_alloc_expanded()
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c280 uint64_t ashift = 0; in make_leaf_vdev() local
388 if (zfs_nicestrtonum(NULL, value, &ashift) != 0) { in make_leaf_vdev()
393 if (ashift != 0 && in make_leaf_vdev()
394 (ashift < ASHIFT_MIN || ashift > ASHIFT_MAX)) { in make_leaf_vdev()
399 ashift, ASHIFT_MIN, ASHIFT_MAX); in make_leaf_vdev()
409 if (ashift == 0) { in make_leaf_vdev()
413 ashift = highbit64(sector_size) - 1; in make_leaf_vdev()
416 if (ashift > 0) in make_leaf_vdev()
417 (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); in make_leaf_vdev()
/f-stack/freebsd/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
/f-stack/freebsd/contrib/openzfs/cmd/zed/agents/
H A Dzfs_retire.c191 int ashift; in replace_with_spare() local
208 ashift = zpool_get_prop_int(zhp, ZPOOL_PROP_ASHIFT, &source); in replace_with_spare()
237 ZPOOL_CONFIG_ASHIFT, ashift); in replace_with_spare()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/fault/
H A Dauto_spare_ashift.ksh70 log_must zpool set ashift=9 $TESTPOOL
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_get/
H A Dzpool_get.cfg88 "ashift"
/f-stack/freebsd/contrib/openzfs/lib/libzfs/
H A Dlibzfs_dataset.c5364 vdev_raidz_asize(uint64_t ndisks, uint64_t nparity, uint64_t ashift, in vdev_raidz_asize() argument
5371 asize = ((blksize - 1) >> ashift) + 1; in vdev_raidz_asize()
5373 asize = roundup(asize, nparity + 1) << ashift; in vdev_raidz_asize()
5389 uint64_t rows = ((blksize - 1) / (ndata << ashift)) + 1; in vdev_draid_asize()
5390 uint64_t asize = (rows * ndisks) << ashift; in vdev_draid_asize()
5416 uint64_t nparity, ashift, asize, tsize; in volsize_from_vdevs() local
5432 ZPOOL_CONFIG_ASHIFT, &ashift) != 0) in volsize_from_vdevs()
5444 tsize = vdev_raidz_asize(ndisks, nparity, ashift, in volsize_from_vdevs()
5448 asize = vdev_raidz_asize(ndisks, nparity, ashift, in volsize_from_vdevs()
5459 ashift, SPA_OLD_MAXBLOCKSIZE); in volsize_from_vdevs()
[all …]
/f-stack/freebsd/contrib/openzfs/cmd/ztest/
H A Dztest.c1094 if (ashift == 0) in make_vdev_file()
1095 ashift = ztest_get_ashift(); in make_vdev_file()
1137 uint64_t ashift, int r) in make_vdev_raid() argument
1143 return (make_vdev_file(path, aux, pool, size, ashift)); in make_vdev_raid()
1147 child[c] = make_vdev_file(path, aux, pool, size, ashift); in make_vdev_raid()
1188 uint64_t ashift, int r, int m) in make_vdev_mirror() argument
1194 return (make_vdev_raid(path, aux, pool, size, ashift, r)); in make_vdev_mirror()
1230 child[c] = make_vdev_mirror(path, aux, pool, size, ashift, in make_vdev_root()
3467 uint64_t ashift = ztest_get_ashift(); in ztest_vdev_attach_detach() local
3635 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach()
[all …]
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dvdev_impl.h74 uint64_t *ashift, uint64_t *pshift);
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/include/
H A Dlibtest.shlib2055 # Given a device and 'ashift' value verify it's correctly set on every label
2057 function verify_ashift # device ashift
2060 typeset ashift="$2"
2062 zdb -e -lll $device | awk -v ashift=$ashift '/ashift: / {
2063 if (ashift != $2)
/f-stack/freebsd/contrib/openzfs/cmd/zdb/
H A Dzdb.c4447 dump_label_uberblocks(zdb_label_t *label, uint64_t ashift, int label_num) in dump_label_uberblocks() argument
4453 vd.vdev_ashift = ashift; in dump_label_uberblocks()
4592 uint64_t psize, ashift, l2cache; in dump_label() local
4649 ashift = SPA_MINBLOCKSHIFT; in dump_label()
4683 ZPOOL_CONFIG_ASHIFT, &ashift) != 0)) in dump_label()
4684 ashift = SPA_MINBLOCKSHIFT; in dump_label()
4708 vd.vdev_ashift = ashift; in dump_label()
4743 dump_label_uberblocks(label, ashift, l); in dump_label()
/f-stack/freebsd/contrib/openzfs/cmd/zfs/
H A Dzfs_main.c917 uint64_t ashift, ndata, nparity; in default_volblocksize() local
919 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_ASHIFT, &ashift) != 0) in default_volblocksize()
925 asize = MAX(asize, ndata * (1ULL << ashift)); in default_volblocksize()
930 asize = MAX(asize, 2 * (1ULL << ashift)); in default_volblocksize()
932 asize = MAX(asize, 4 * (1ULL << ashift)); in default_volblocksize()
935 asize = MAX(asize, 1ULL << ashift); in default_volblocksize()