| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/ |
| HD | zpool_set_ashift.ksh | 70 for ashift in ${goodvals[@]} 72 log_must zpool set ashift=$ashift $TESTPOOL1 73 typeset value=$(get_pool_prop ashift $TESTPOOL1) 74 if [[ "$ashift" != "$value" ]]; then 75 log_fail "'zpool set' did not update ashift value to $ashift "\ 80 for ashift in ${badvals[@]} 82 log_mustnot zpool set ashift=$ashift $TESTPOOL1 83 typeset value=$(get_pool_prop ashift $TESTPOOL1) 84 if [[ "$ashift" == "$value" ]]; then
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
| HD | add_prop_ashift.ksh | 70 for ashift in ${ashifts[@]} 72 if [ $ashift -eq $orig_ashift ];then 77 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1 79 log_must verify_ashift $disk2 $ashift 87 for ashift in ${ashifts[@]} 91 if [ $ashift -eq $cmdval ];then 96 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1 97 log_must zpool add $opt -o ashift=$cmdval $TESTPOOL $disk2
|
| HD | add-o_ashift.ksh | 67 for ashift in ${ashifts[@]} 73 if [[ $ashift -eq $orig_ashift ]]; then 80 log_must zpool add $opt -o ashift=$ashift $TESTPOOL $disk2 81 log_must verify_ashift $disk2 $ashift 92 log_must set_tunable32 VDEV_FILE_PHYSICAL_ASHIFT $ashift 94 exp=$(( (ashift <= max_auto_ashift) ? ashift : logical_ashift )) 108 log_mustnot zpool add -o ashift="$badval" $TESTPOOL $disk2
|
| HD | zpool_add_004_pos.ksh | 74 log_must zpool add --allow-ashift-mismatch $TESTPOOL $ZVOL_DEVDIR/$TESTPOOL1/$TESTVOL
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
| HD | create-o_ashift.ksh | 105 typeset ashift=${ashifts[$i]} 106 log_must zpool create -o ashift=$ashift $TESTPOOL $disk 107 typeset pprop=$(get_pool_prop ashift $TESTPOOL) 108 verify_ashift $disk $ashift 109 if [[ $? -ne 0 || "$pprop" != "$ashift" ]] 112 "$ashift (current = $pprop)" 127 log_mustnot zpool create -o ashift="$badval" $TESTPOOL $disk
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_replace/ |
| HD | replace-o_ashift.ksh | 68 for ashift in ${ashifts[@]} 70 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 71 log_must verify_ashift $disk1 $ashift 74 log_must verify_ashift $disk2 $ashift 86 log_mustnot zpool replace -o ashift=$badval $TESTPOOL1 $disk1 $disk2
|
| HD | replace_prop_ashift.ksh | 68 for ashift in ${ashifts[@]} 72 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 73 log_must zpool set ashift=$pprop $TESTPOOL1 76 log_must verify_ashift $disk2 $ashift
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_attach/ |
| HD | attach-o_ashift.ksh | 68 for ashift in ${ashifts[@]} 70 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 71 log_must verify_ashift $disk1 $ashift 73 log_must verify_ashift $disk2 $ashift 84 log_mustnot zpool attach -o ashift=$badval $TESTPOOL1 $disk1 $disk2
|
| /freebsd-head/usr.sbin/makefs/zfs/ |
| HD | 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-head/sys/contrib/openzfs/module/zfs/ |
| HD | vdev_raidz.c | 469 vdev_raidz_map_alloc_write(zio_t *zio, raidz_map_t *rm, uint64_t ashift) in vdev_raidz_map_alloc_write() argument 512 rc->rc_size + (1ULL << ashift), B_FALSE); in vdev_raidz_map_alloc_write() 513 abd_zero_off(rc->rc_abd, rc->rc_size, 1ULL << ashift); in vdev_raidz_map_alloc_write() 543 abd_get_zeros(1ULL << ashift), B_TRUE); in vdev_raidz_map_alloc_write() 584 vdev_raidz_map_alloc(zio_t *zio, uint64_t ashift, uint64_t dcols, in vdev_raidz_map_alloc() argument 589 uint64_t b = zio->io_offset >> ashift; in vdev_raidz_map_alloc() 591 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc() 595 uint64_t o = (b / dcols) << ashift; in vdev_raidz_map_alloc() 655 coff += 1ULL << ashift; in vdev_raidz_map_alloc() 663 rc->rc_size = (q + 1) << ashift; in vdev_raidz_map_alloc() [all …]
|
| HD | vdev_draid.c | 585 uint64_t ashift = vd->vdev_ashift; in vdev_draid_psize_to_asize() local 589 uint64_t rows = ((psize - 1) / (vdc->vdc_ndata << ashift)) + 1; in vdev_draid_psize_to_asize() 590 uint64_t asize = (rows * vdc->vdc_groupwidth) << ashift; in vdev_draid_psize_to_asize() 906 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() local 907 uint64_t b_offset = logical_offset >> ashift; in vdev_draid_logical_to_physical() 914 uint64_t rowheight_sectors = VDEV_DRAID_ROWHEIGHT >> ashift; in vdev_draid_logical_to_physical() 955 (b_offset / groupwidth)) << ashift); in vdev_draid_logical_to_physical() 964 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() local 986 (io_asize >> ashift) % vdc->vdc_groupwidth == 0); in vdev_draid_map_alloc_row() 1008 const uint64_t psize = io_size >> ashift; in vdev_draid_map_alloc_row() [all …]
|
| HD | vdev_missing.c | 48 uint64_t *ashift, uint64_t *pshift) in vdev_missing_open() argument 59 *ashift = 0; in vdev_missing_open()
|
| HD | vdev_root.c | 86 uint64_t *ashift, uint64_t *pshift) in vdev_root_open() argument 119 *ashift = 0; in vdev_root_open()
|
| /freebsd-head/sys/contrib/openzfs/cmd/ |
| HD | zhack.c | 499 #define ASHIFT_UBERBLOCK_SHIFT(ashift) \ argument 500 MIN(MAX(ashift, UBERBLOCK_SHIFT), \ 502 #define ASHIFT_UBERBLOCK_SIZE(ashift) \ argument 503 (1ULL << ASHIFT_UBERBLOCK_SHIFT(ashift)) 556 uint64_t *ashift) in zhack_repair_check_label() argument 592 ZPOOL_CONFIG_ASHIFT, ashift); in zhack_repair_check_label() 600 if (*ashift == 0) { in zhack_repair_check_label() 683 const uint64_t ashift, const int fd, const int byteswap, in zhack_repair_write_uberblock() argument 690 ((char *)(ub_data) + (ASHIFT_UBERBLOCK_SIZE(ashift))) - 1; in zhack_repair_write_uberblock() 709 ASHIFT_UBERBLOCK_SIZE(ashift))) in zhack_repair_write_uberblock() [all …]
|
| /freebsd-head/usr.sbin/makefs/ |
| HD | 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-head/sys/contrib/openzfs/cmd/zpool/ |
| HD | zpool_vdev.c | 280 uint64_t ashift = 0; in make_leaf_vdev() local 392 if (zfs_nicestrtonum(NULL, value, &ashift) != 0) { in make_leaf_vdev() 397 if (ashift != 0 && in make_leaf_vdev() 398 (ashift < ASHIFT_MIN || ashift > ASHIFT_MAX)) { in make_leaf_vdev() 403 ashift, ASHIFT_MIN, ASHIFT_MAX); in make_leaf_vdev() 413 if (ashift == 0) { in make_leaf_vdev() 417 ashift = highbit64(sector_size) - 1; in make_leaf_vdev() 420 if (ashift > 0) in make_leaf_vdev() 421 (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); in make_leaf_vdev()
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| HD | send_raw_ashift.ksh | 159 log_must zpool create -f -o ashift=9 pool9 $TESTDIR/vdev_a 160 log_must zpool create -f -o ashift=12 pool12 $TESTDIR/vdev_b
|
| /freebsd-head/tests/sys/cddl/zfs/include/ |
| HD | 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-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/no_space/ |
| HD | enospc_003_pos.ksh | 58 log_must zpool create -o ashift=13 $TESTPOOL1 $DISK_LARGE
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/ |
| HD | auto_spare_ashift.ksh | 71 log_must zpool set ashift=9 $TESTPOOL
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/l2arc/ |
| HD | persist_l2arc_001_pos.ksh | 80 log_must zpool create -f -o ashift=12 $TESTPOOL $VDEV
|
| /freebsd-head/sys/contrib/openzfs/cmd/zed/agents/ |
| HD | zfs_retire.c | 254 int ashift; in replace_with_spare() local 271 ashift = zpool_get_prop_int(zhp, ZPOOL_PROP_ASHIFT, &source); in replace_with_spare() 300 ZPOOL_CONFIG_ASHIFT, ashift); in replace_with_spare()
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/gang_blocks/ |
| HD | gang_blocks_redundant.ksh | 41 log_must zpool create -f -o ashift=9 $TESTPOOL $DISKS
|
| /freebsd-head/sys/contrib/openzfs/.github/workflows/scripts/ |
| HD | qemu-1-setup.sh | 60 sudo zpool create -f -o ashift=12 zpool $SSD1 $SSD2 -O relatime=off \
|
| /freebsd-head/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/ |
| HD | bclone.cfg | 27 # TODO: We should calculate that based on ashift.
|