/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/ |
H A D | zpool_set_ashift.ksh | 69 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | add_prop_ashift.ksh | 69 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 D | add-o_ashift.ksh | 66 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 D | zpool_add_004_pos.ksh | 73 log_must zpool add --allow-ashift-mismatch $TESTPOOL $ZVOL_DEVDIR/$TESTPOOL1/$TESTVOL
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | create-o_ashift.ksh | 104 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_attach/ |
H A D | attach-o_ashift.ksh | 67 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_replace/ |
H A D | replace-o_ashift.ksh | 67 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 D | replace_prop_ashift.ksh | 67 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/usr.sbin/makefs/zfs/ |
H A D | vdev.c | 97 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/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_raidz.c | 468 vdev_raidz_map_alloc_write(zio_t *zio, raidz_map_t *rm, uint64_t ashift) in vdev_raidz_map_alloc_write() argument 511 rc->rc_size + (1ULL << ashift), B_FALSE); in vdev_raidz_map_alloc_write() 512 abd_zero_off(rc->rc_abd, rc->rc_size, 1ULL << ashift); in vdev_raidz_map_alloc_write() 542 abd_get_zeros(1ULL << ashift), B_TRUE); in vdev_raidz_map_alloc_write() 583 vdev_raidz_map_alloc(zio_t *zio, uint64_t ashift, uint64_t dcols, in vdev_raidz_map_alloc() argument 588 uint64_t b = zio->io_offset >> ashift; in vdev_raidz_map_alloc() 590 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc() 594 uint64_t o = (b / dcols) << ashift; in vdev_raidz_map_alloc() 654 coff += 1ULL << ashift; in vdev_raidz_map_alloc() 662 rc->rc_size = (q + 1) << ashift; in vdev_raidz_map_alloc() [all …]
|
H A D | vdev_draid.c | 584 uint64_t ashift = vd->vdev_ashift; in vdev_draid_asize() local 588 uint64_t rows = ((psize - 1) / (vdc->vdc_ndata << ashift)) + 1; in vdev_draid_asize() 589 uint64_t asize = (rows * vdc->vdc_groupwidth) << ashift; in vdev_draid_asize() 904 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() local 905 uint64_t b_offset = logical_offset >> ashift; in vdev_draid_logical_to_physical() 912 uint64_t rowheight_sectors = VDEV_DRAID_ROWHEIGHT >> ashift; in vdev_draid_logical_to_physical() 953 (b_offset / groupwidth)) << ashift); in vdev_draid_logical_to_physical() 962 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() local 984 (io_asize >> ashift) % vdc->vdc_groupwidth == 0); in vdev_draid_map_alloc_row() 1006 const uint64_t psize = io_size >> ashift; in vdev_draid_map_alloc_row() [all …]
|
H A D | vdev_missing.c | 47 uint64_t *ashift, uint64_t *pshift) in vdev_missing_open() argument 58 *ashift = 0; in vdev_missing_open()
|
H A D | vdev_root.c | 85 uint64_t *ashift, uint64_t *pshift) in vdev_root_open() argument 118 *ashift = 0; in vdev_root_open()
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | zhack.c | 498 #define ASHIFT_UBERBLOCK_SHIFT(ashift) \ argument 499 MIN(MAX(ashift, UBERBLOCK_SHIFT), \ 501 #define ASHIFT_UBERBLOCK_SIZE(ashift) \ argument 502 (1ULL << ASHIFT_UBERBLOCK_SHIFT(ashift)) 555 uint64_t *ashift) in zhack_repair_check_label() argument 591 ZPOOL_CONFIG_ASHIFT, ashift); in zhack_repair_check_label() 599 if (*ashift == 0) { in zhack_repair_check_label() 682 const uint64_t ashift, const int fd, const int byteswap, in zhack_repair_write_uberblock() argument 689 ((char *)(ub_data) + (ASHIFT_UBERBLOCK_SIZE(ashift))) - 1; in zhack_repair_write_uberblock() 708 ASHIFT_UBERBLOCK_SIZE(ashift))) in zhack_repair_write_uberblock() [all …]
|
/freebsd/usr.sbin/makefs/ |
H A D | zfs.c | 92 { '\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/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_vdev.c | 279 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send_raw_ashift.ksh | 158 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/tests/sys/cddl/zfs/include/ |
H A D | libtest.kshlib | 3178 typeset -i ashift=$3 3181 (( offset >>= ashift )) 3186 (( ioff += ( 4194304 >> $ashift ) )) 3287 ashift=$(get_tvd_prop $lvd $tvd ashift) 3288 log_debug "raidz: ashift='${ashift}'" 3289 off=$(raidz_dva_to_block_addr $dva $nchildren $ashift) 3292 ashift=9 3296 echo "${lvd}:${ashift}:${off}" 3397 ashift=$(echo $vdoff | cut -d: -f2) 3399 blocksize=$(( 1 << $ashift )) [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/no_space/ |
H A D | enospc_003_pos.ksh | 57 log_must zpool create -o ashift=13 $TESTPOOL1 $DISK_LARGE
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_retire.c | 253 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/ |
H A D | auto_spare_ashift.ksh | 70 log_must zpool set ashift=9 $TESTPOOL
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/l2arc/ |
H A D | persist_l2arc_001_pos.ksh | 79 log_must zpool create -f -o ashift=12 $TESTPOOL $VDEV
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/ |
H A D | bclone.cfg | 26 # TODO: We should calculate that based on ashift.
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_get/ |
H A D | vdev_get.cfg | 33 ashift
|
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/ |
H A D | qemu-1-setup.sh | 86 sudo zpool create -f -o ashift=12 zpool $SSD1 $SSD2 \
|