Home
last modified time | relevance | path

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

123

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/
H A Dzpool_set_ashift.ksh60 for ashift in ${goodvals[@]}
62 log_must zpool set ashift=$ashift $TESTPOOL1
63 typeset value=$(get_pool_prop ashift $TESTPOOL1)
64 if [[ "$ashift" != "$value" ]]; then
65 log_fail "'zpool set' did not update ashift value to $ashift "\
70 for ashift in ${badvals[@]}
72 log_mustnot zpool set ashift=$ashift $TESTPOOL1
73 typeset value=$(get_pool_prop ashift $TESTPOOL1)
74 if [[ "$ashift" == "$value" ]]; then
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dadd_prop_ashift.ksh60 for ashift in ${ashifts[@]}
62 if [ $ashift -eq $orig_ashift ];then
67 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1
69 log_must verify_ashift $disk2 $ashift
77 for ashift in ${ashifts[@]}
81 if [ $ashift -eq $cmdval ];then
86 log_must zpool create -o ashift=$ashift $TESTPOOL $disk1
87 log_must zpool add $opt -o ashift=$cmdval $TESTPOOL $disk2
H A Dadd-o_ashift.ksh57 for ashift in ${ashifts[@]}
63 if [[ $ashift -eq $orig_ashift ]]; then
70 log_must zpool add $opt -o ashift=$ashift $TESTPOOL $disk2
71 log_must verify_ashift $disk2 $ashift
82 log_must set_tunable32 VDEV_FILE_PHYSICAL_ASHIFT $ashift
84 exp=$(( (ashift <= max_auto_ashift) ? ashift : logical_ashift ))
98 log_mustnot zpool add -o ashift="$badval" $TESTPOOL $disk2
H A Dzpool_add_004_pos.ksh64 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 Dcreate-o_ashift.ksh95 typeset ashift=${ashifts[$i]}
96 log_must zpool create -o ashift=$ashift $TESTPOOL $disk
97 typeset pprop=$(get_pool_prop ashift $TESTPOOL)
98 verify_ashift $disk $ashift
99 if [[ $? -ne 0 || "$pprop" != "$ashift" ]]
102 "$ashift (current = $pprop)"
117 log_mustnot zpool create -o ashift="$badval" $TESTPOOL $disk
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_attach/
H A Dattach-o_ashift.ksh58 for ashift in ${ashifts[@]}
60 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
61 log_must verify_ashift $disk1 $ashift
63 log_must verify_ashift $disk2 $ashift
74 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 Dreplace-o_ashift.ksh58 for ashift in ${ashifts[@]}
60 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
61 log_must verify_ashift $disk1 $ashift
64 log_must verify_ashift $disk2 $ashift
76 log_mustnot zpool replace -o ashift=$badval $TESTPOOL1 $disk1 $disk2
H A Dreplace_prop_ashift.ksh58 for ashift in ${ashifts[@]}
62 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
63 log_must zpool set ashift=$pprop $TESTPOOL1
66 log_must verify_ashift $disk2 $ashift
/freebsd/usr.sbin/makefs/zfs/
H A Dvdev.c98 assert(bit_ntest(zfs->spacemap, off >> zfs->ashift, in vdev_pwrite()
99 (off + len - 1) >> zfs->ashift, 1)); in vdev_pwrite()
200 * per sector; for example, with an ashift of 12 we end up with in vdev_label_write()
203 blksz = ASHIFT_UBERBLOCK_SIZE(zfs->ashift); in vdev_label_write()
241 minblksz = 1 << zfs->ashift; in vdev_space_alloc()
270 return ((off_t)loc << zfs->ashift); in vdev_space_alloc()
280 nbits = rounddown2(zfs->asize, zfs->mssize) >> zfs->ashift; in vdev_spacemap_init()
320 smblksz = 1 << zfs->ashift; in vdev_spacemap_write()
356 shift = zfs->msshift - zfs->ashift; in vdev_spacemap_write()
386 alloc += runlen << zfs->ashift; in vdev_spacemap_write()
[all...]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_raidz.c506 vdev_raidz_map_alloc_write(zio_t *zio, raidz_map_t *rm, uint64_t ashift) in vdev_raidz_map_alloc_write() argument
565 rc->rc_size + (1ULL << ashift), B_FALSE); in vdev_raidz_map_alloc_write()
566 abd_zero_off(rc->rc_abd, rc->rc_size, 1ULL << ashift); in vdev_raidz_map_alloc_write()
597 abd_get_zeros(1ULL << ashift), B_TRUE); in vdev_raidz_map_alloc_write()
640 vdev_raidz_map_alloc(zio_t *zio, uint64_t ashift, uint64_t dcols, in vdev_raidz_map_alloc() argument
645 uint64_t b = zio->io_offset >> ashift; in vdev_raidz_map_alloc()
647 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc()
651 uint64_t o = (b / dcols) << ashift; in vdev_raidz_map_alloc()
711 coff += 1ULL << ashift; in vdev_raidz_map_alloc()
719 rc->rc_size = (q + 1) << ashift; in vdev_raidz_map_alloc()
[all …]
H A Dvdev_draid.c709 uint64_t ashift = vd->vdev_ashift; in vdev_draid_psize_to_asize() local
713 uint64_t rows = ((psize - 1) / (vdc->vdc_ndata << ashift)) + 1; in vdev_draid_psize_to_asize()
714 uint64_t asize = (rows * vdc->vdc_groupwidth) << ashift; in vdev_draid_psize_to_asize()
1031 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() local
1032 uint64_t b_offset = logical_offset >> ashift; in vdev_draid_logical_to_physical()
1039 uint64_t rowheight_sectors = VDEV_DRAID_ROWHEIGHT >> ashift; in vdev_draid_logical_to_physical()
1119 (b_offset / groupwidth)) << ashift); in vdev_draid_logical_to_physical()
1128 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() local
1150 (io_asize >> ashift) % vdc->vdc_groupwidth == 0); in vdev_draid_map_alloc_row()
1171 const uint64_t psize = io_size >> ashift; in vdev_draid_map_alloc_row()
[all …]
H A Dvdev_missing.c38 uint64_t *ashift, uint64_t *pshift, cred_t *cr) in vdev_missing_open() argument
49 *ashift = 0; in vdev_missing_open()
H A Dvdev_root.c76 uint64_t *ashift, uint64_t *pshift, cred_t *cr) in vdev_root_open() argument
109 *ashift = 0; in vdev_root_open()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_status.c138 uint64_t ashift = *(uint64_t *)arg; in vdev_non_native_ashift() local
141 (ashift == 0 || vs->vs_configured_ashift < ashift) && in vdev_non_native_ashift()
240 zpool_errata_t *erratap, const char *compat, uint64_t ashift) in check_status() argument
456 find_vdev_problem(nvroot, vdev_non_native_ashift, &ashift, B_FALSE)) in check_status()
536 uint64_t ashift = zpool_get_prop_int(zhp, ZPOOL_PROP_ASHIFT, NULL); in zpool_get_status() local
539 compatibility, ashift); in zpool_get_status()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/refreserv/
H A Drefreserv_raidz.ksh65 ashift=12
85 log_must zpool create -o ashift=$ashift "$TESTPOOL" "$raid" "${disks[@]}"
/freebsd/usr.sbin/makefs/
H A Dzfs.c97 { '\0', "ashift", &zfs->ashift, OPT_INT32, in zfs_prep_opts()
153 assert(zfs->ashift != 0); in zfs_size_vdev()
158 vdevsize = rounddown2(fsopts->maxsize, 1 << zfs->ashift); in zfs_size_vdev()
163 1 << zfs->ashift); in zfs_size_vdev()
250 if (zfs->ashift == 0) in zfs_check_opts()
251 zfs->ashift = 12; in zfs_check_opts()
337 nvlist_add_uint64(diskvdevnv, ZPOOL_CONFIG_ASHIFT, zfs->ashift); in pool_disk_vdev_config_nvcreate()
607 uoff += ASHIFT_UBERBLOCK_SIZE(zfs->ashift)) { in pool_labels_write()
665 blksz = MIN(MAXBLOCKSIZE, MAX(1 << zfs->ashift, in dnode_cursor_init()
/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c263 make_leaf_vdev(const char *arg, boolean_t is_primary, uint64_t ashift) in make_leaf_vdev() argument
377 if (ashift == 0) { in make_leaf_vdev()
381 ashift = highbit64(sector_size) - 1; in make_leaf_vdev()
384 if (ashift > 0) in make_leaf_vdev()
385 (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); in make_leaf_vdev()
1549 uint64_t ashift = 0; in construct_spec() local
1556 if (zfs_nicestrtonum(NULL, value, &ashift) != 0) { in construct_spec()
1561 if (ashift != 0 && in construct_spec()
1562 (ashift < ASHIFT_MIN || ashift > ASHIFT_MAX)) { in construct_spec()
1567 ashift, ASHIFT_MIN, ASHIFT_MAX); in construct_spec()
[all …]
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dzfs_file_os.c143 size_t count, loff_t pos, uint8_t ashift, ssize_t *resid) in zfs_file_pwrite() argument
153 sectors = count >> ashift; in zfs_file_pwrite()
154 split = (sectors > 0 ? rand() % sectors : 0) << ashift; in zfs_file_pwrite()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_raw_ashift.ksh156 log_must zpool create -f -o ashift=9 pool9 $TESTDIR/vdev_a
157 log_must zpool create -f -o ashift=12 pool12 $TESTDIR/vdev_b
/freebsd/sys/contrib/openzfs/cmd/
H A Dzhack.c1630 #define ASHIFT_UBERBLOCK_SHIFT(ashift) \ argument
1631 MIN(MAX(ashift, UBERBLOCK_SHIFT), \
1633 #define ASHIFT_UBERBLOCK_SIZE(ashift) \ argument
1634 (1ULL << ASHIFT_UBERBLOCK_SHIFT(ashift))
1702 zhack_repair_get_ashift(nvlist_t *cfg, const int l, uint64_t *ashift) in zhack_repair_get_ashift() argument
1717 ZPOOL_CONFIG_ASHIFT, ashift); in zhack_repair_get_ashift()
1725 if (*ashift == 0) { in zhack_repair_get_ashift()
1813 const uint64_t ashift, const int fd, const int byteswap, in zhack_repair_write_uberblock() argument
1820 ((char *)(ub_data) + (ASHIFT_UBERBLOCK_SIZE(ashift))) - 1; in zhack_repair_write_uberblock()
1839 ASHIFT_UBERBLOCK_SIZE(ashift))) in zhack_repair_write_uberblock()
[all …]
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib3178 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/module/os/linux/zfs/
H A Dzfs_file_os.c111 uint8_t ashift, ssize_t *resid) in zfs_file_pwrite() argument
113 (void) ashift; in zfs_file_pwrite()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zstream/test-stream-creation-scripts/
H A Dmake-long-payloads.sh30 zpool create -o ashift=12 test "$DEVICE"
H A Dmake-decompression-streams.sh30 zpool create -o ashift=12 test "$DEVICE"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/no_space/
H A Denospc_003_pos.ksh48 log_must zpool create -o ashift=13 $TESTPOOL1 $DISK_LARGE

123