/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_set/ |
H A D | zpool_set_ashift.ksh | 59 for ashift in ${goodvals[@]} 61 log_must zpool set ashift=$ashift $TESTPOOL 62 typeset value=$(get_pool_prop ashift $TESTPOOL) 63 if [[ "$ashift" != "$value" ]]; then 64 log_fail "'zpool set' did not update ashift value to $ashift "\ 69 for ashift in ${badvals[@]} 71 log_mustnot zpool set ashift=$ashift $TESTPOOL 72 typeset value=$(get_pool_prop ashift $TESTPOOL) 73 if [[ "$ashift" == "$value" ]]; then
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_replace/ |
H A D | replace_prop_ashift.ksh | 59 for ashift in ${ashifts[@]} 63 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 64 log_must zpool set ashift=$pprop $TESTPOOL1 66 if [[ $pprop -le $ashift ]] 70 verify_ashift $disk2 $ashift 74 "setting ashift value to $ashift" 80 log_must zpool replace -o ashift=$ashift $TESTPOOL1 \ 83 verify_ashift $disk2 $ashift 87 "setting ashift value to $ashift"
|
H A D | replace-o_ashift.ksh | 58 for ashift in ${ashifts[@]} 62 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 63 verify_ashift $disk1 $ashift 67 "value to $ashift" 70 if [[ $cmdval -le $ashift ]] 72 log_must zpool replace -o ashift=$cmdval $TESTPOOL1 \ 74 verify_ashift $disk2 $ashift 78 "setting ashift value to $ashift" 82 log_mustnot zpool replace -o ashift=$cmdval $TESTPOOL1 \ 96 log_mustnot zpool replace -o ashift=$badval $TESTPOOL1 $disk1 $disk2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_attach/ |
H A D | attach-o_ashift.ksh | 58 for ashift in ${ashifts[@]} 62 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 63 verify_ashift $disk1 $ashift 67 "value to $ashift" 70 if [[ $cmdval -le $ashift ]] 72 log_must zpool attach -o ashift=$cmdval $TESTPOOL1 \ 74 verify_ashift $disk2 $ashift 78 "setting ashift value to $ashift" 81 log_mustnot zpool attach -o ashift=$cmdval $TESTPOOL1 \ 95 log_mustnot zpool attach $TESTPOOL1 -o ashift=$badval $disk1 $disk2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | add_prop_ashift.ksh | 60 for ashift in ${ashifts[@]} 62 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1 64 verify_ashift $disk2 $ashift 68 "$ashift" 76 for ashift in ${ashifts[@]} 80 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1 81 log_must zpool add -o ashift=$cmdval $TESTPOOL $disk2
|
H A D | add-o_ashift.ksh | 58 for ashift in ${ashifts[@]} 61 log_must zpool add -o ashift=$ashift $TESTPOOL $disk2 62 verify_ashift $disk2 $ashift 66 "$ashift" 78 log_mustnot zpool add $TESTPOOL -o ashift="$badval" $disk2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | create-o_ashift.ksh | 120 typeset ashift=${ashifts[$i]} 121 log_must zpool create -o ashift=$ashift $TESTPOOL $disk 122 typeset pprop=$(get_pool_prop ashift $TESTPOOL) 123 verify_ashift $disk $ashift 124 if [[ $? -ne 0 || "$pprop" != "$ashift" ]] 127 "$ashift (current = $pprop)" 146 log_mustnot zpool create -o ashift="$badval" $TESTPOOL $disk
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | vdev_missing.c | 49 uint64_t *ashift) in vdev_missing_open() argument 59 *ashift = 0; in vdev_missing_open()
|
H A D | vdev_raidz.c | 343 uint64_t b = zio->io_offset >> ashift; in vdev_raidz_map_alloc() 345 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc() 349 uint64_t o = (b / dcols) << ashift; in vdev_raidz_map_alloc() 408 coff += 1ULL << ashift; in vdev_raidz_map_alloc() 423 rm->rm_col[c].rc_size = q << ashift; in vdev_raidz_map_alloc() 428 ASSERT3U(asize, ==, tot << ashift); in vdev_raidz_map_alloc() 1566 uint64_t *ashift) in vdev_raidz_open() argument 1595 *ashift = MAX(*ashift, cvd->vdev_ashift); in vdev_raidz_open() 1779 asize = ((psize - 1) >> ashift) + 1; in vdev_raidz_asize() 2512 uint64_t b = offset >> ashift; in vdev_raidz_need_resilver() [all …]
|
H A D | vdev_root.c | 86 uint64_t *ashift) in vdev_root_open() argument 118 *ashift = 0; in vdev_root_open()
|
H A D | vdev_file.c | 58 uint64_t *ashift) in vdev_file_open() argument 142 *ashift = SPA_MINBLOCKSHIFT; in vdev_file_open()
|
H A D | vdev_mirror.c | 358 uint64_t *ashift) in vdev_mirror_open() argument 381 *ashift = MAX(*ashift, cvd->vdev_ashift); in vdev_mirror_open()
|
H A D | metaslab.c | 988 uint64_t ashift = vd->vdev_ashift; in metaslab_group_histogram_verify() local 998 SPACE_MAP_HISTOGRAM_SIZE + ashift); in metaslab_group_histogram_verify() 1008 mg_hist[i + ashift] += in metaslab_group_histogram_verify() 1022 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_add() local 1030 mg->mg_histogram[i + ashift] += in metaslab_group_histogram_add() 1032 mc->mc_histogram[i + ashift] += in metaslab_group_histogram_add() 1042 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_remove() local 1050 ASSERT3U(mg->mg_histogram[i + ashift], >=, in metaslab_group_histogram_remove() 1052 ASSERT3U(mc->mc_histogram[i + ashift], >=, in metaslab_group_histogram_remove() 1055 mg->mg_histogram[i + ashift] -= in metaslab_group_histogram_remove() [all …]
|
H A D | vdev_disk.c | 287 uint64_t *ashift) in vdev_disk_open() argument 708 *ashift = highbit64(MAX(pbsize, SPA_MINBLOCKSIZE)) - 1; in vdev_disk_open()
|
H A D | vdev_indirect.c | 931 uint64_t *ashift) in vdev_indirect_open() argument 935 *ashift = vd->vdev_ashift; in vdev_indirect_open()
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_vdev.c | 400 uint64_t ashift = 0; in make_leaf_vdev() local 490 if (zfs_nicestrtonum(NULL, value, &ashift) != 0) { in make_leaf_vdev() 495 if (ashift != 0 && in make_leaf_vdev() 496 (ashift < ASHIFT_MIN || ashift > ASHIFT_MAX)) { in make_leaf_vdev() 501 ashift, ASHIFT_MIN, ASHIFT_MAX); in make_leaf_vdev() 542 if (ashift > 0) in make_leaf_vdev() 543 (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); in make_leaf_vdev()
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 237 int ashift; in replace_with_spare() local 256 ashift = zpool_get_prop_int(zhp, ZPOOL_PROP_ASHIFT, &source); in replace_with_spare() 279 ZPOOL_CONFIG_ASHIFT, ashift); in replace_with_spare()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.c | 274 find_bestub(char *ub_array, uint64_t ashift, uint64_t sector) in find_bestub() argument 281 ub_size = VDEV_UBERBLOCK_SIZE(ashift); in find_bestub() 283 for (i = 0; i < VDEV_UBERBLOCK_COUNT(ashift); i++) { in find_bestub() 287 VDEV_UBERBLOCK_OFFSET(ashift, i); in find_bestub() 1631 uint64_t tmp_guid, tmp_vdev, ashift, version; in zfs_mount() local 1674 &tmp_guid, &tmp_vdev, &ashift, &version)) in zfs_mount() 1680 if ((ubbest = find_bestub(ub_array, ashift, sector)) == NULL || in zfs_mount()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_get/ |
H A D | zpool_get.cfg | 60 "ashift"
|
/illumos-gate/usr/src/cmd/ztest/ |
H A D | ztest.c | 930 if (ashift == 0) in make_vdev_file() 931 ashift = ztest_get_ashift(); in make_vdev_file() 969 uint64_t ashift, int r) in make_vdev_raidz() argument 975 return (make_vdev_file(path, aux, pool, size, ashift)); in make_vdev_raidz() 979 child[c] = make_vdev_file(path, aux, pool, size, ashift); in make_vdev_raidz() 999 uint64_t ashift, int r, int m) in make_vdev_mirror() argument 1005 return (make_vdev_raidz(path, aux, pool, size, ashift, r)); in make_vdev_mirror() 1041 child[c] = make_vdev_mirror(path, aux, pool, size, ashift, in make_vdev_root() 3221 uint64_t ashift = ztest_get_ashift(); in ztest_vdev_attach_detach() local 3370 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | lofi.c | 453 int ashift; in lofi_tg_getinfo() local 487 ashift = lsp->ls_lbshift; in lofi_tg_getinfo() 494 (lsp->ls_vp_size - lsp->ls_crypto_offset) >> ashift; in lofi_tg_getinfo() 499 geomp->g_secsize = (1U << ashift); in lofi_tg_getinfo() 507 (lsp->ls_vp_size - lsp->ls_crypto_offset) >> ashift; in lofi_tg_getinfo() 511 *(uint32_t *)arg = (1U << ashift); in lofi_tg_getinfo()
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | vdev_impl.h | 72 uint64_t *ashift);
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | libtest.shlib | 1483 # Given a device and 'ashift' value verify it's correctly set on every label 1485 function verify_ashift # device ashift 1488 typeset ashift="$2" 1490 zdb -e -lll $device | nawk -v ashift=$ashift '/ashift: / { 1491 if (ashift != $2)
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_dataset.c | 5353 vdev_raidz_asize(uint64_t ndisks, uint64_t nparity, uint64_t ashift, in vdev_raidz_asize() argument 5360 asize = ((blksize - 1) >> ashift) + 1; in vdev_raidz_asize() 5362 asize = roundup(asize, nparity + 1) << ashift; in vdev_raidz_asize() 5388 uint64_t nparity, ashift, asize, tsize; in volsize_from_vdevs() local 5398 &ashift) != 0 || in volsize_from_vdevs() 5405 tsize = vdev_raidz_asize(ndisks, nparity, ashift, in volsize_from_vdevs() 5408 asize = vdev_raidz_asize(ndisks, nparity, ashift, blksize); in volsize_from_vdevs()
|
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 3163 dump_label_uberblocks(zdb_label_t *label, uint64_t ashift, int label_num) in dump_label_uberblocks() argument 3168 vd.vdev_ashift = ashift; in dump_label_uberblocks() 3200 uint64_t psize, ashift, l2cache; in dump_label() local 3257 ashift = SPA_MINBLOCKSHIFT; in dump_label() 3291 ZPOOL_CONFIG_ASHIFT, &ashift) != 0)) in dump_label() 3292 ashift = SPA_MINBLOCKSHIFT; in dump_label() 3316 vd.vdev_ashift = ashift; in dump_label() 3351 dump_label_uberblocks(label, ashift, l); in dump_label()
|