Home
last modified time | relevance | path

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

123

/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_set/
H A Dzpool_set_ashift.ksh70 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
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dadd_prop_ashift.ksh70 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
H A Dadd-o_ashift.ksh67 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
H A Dzpool_add_004_pos.ksh74 log_must zpool add --allow-ashift-mismatch $TESTPOOL $ZVOL_DEVDIR/$TESTPOOL1/$TESTVOL
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dcreate-o_ashift.ksh105 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
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_attach/
H A Dattach-o_ashift.ksh68 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
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_replace/
H A Dreplace-o_ashift.ksh68 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
H A Dreplace_prop_ashift.ksh68 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
/src/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()
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()
416 assert(zfs->ashift >= MINBLOCKSHIFT); in vdev_init()
/src/sys/contrib/openzfs/module/zfs/
H A Dvdev_raidz.c496 vdev_raidz_map_alloc_write(zio_t *zio, raidz_map_t *rm, uint64_t ashift) in vdev_raidz_map_alloc_write() argument
539 rc->rc_size + (1ULL << ashift), B_FALSE); in vdev_raidz_map_alloc_write()
540 abd_zero_off(rc->rc_abd, rc->rc_size, 1ULL << ashift); in vdev_raidz_map_alloc_write()
570 abd_get_zeros(1ULL << ashift), B_TRUE); in vdev_raidz_map_alloc_write()
611 vdev_raidz_map_alloc(zio_t *zio, uint64_t ashift, uint64_t dcols, in vdev_raidz_map_alloc() argument
616 uint64_t b = zio->io_offset >> ashift; in vdev_raidz_map_alloc()
618 uint64_t s = zio->io_size >> ashift; in vdev_raidz_map_alloc()
622 uint64_t o = (b / dcols) << ashift; in vdev_raidz_map_alloc()
682 coff += 1ULL << ashift; in vdev_raidz_map_alloc()
690 rc->rc_size = (q + 1) << ashift; in vdev_raidz_map_alloc()
[all …]
H A Dvdev_draid.c586 uint64_t ashift = vd->vdev_ashift; in vdev_draid_psize_to_asize() local
590 uint64_t rows = ((psize - 1) / (vdc->vdc_ndata << ashift)) + 1; in vdev_draid_psize_to_asize()
591 uint64_t asize = (rows * vdc->vdc_groupwidth) << ashift; in vdev_draid_psize_to_asize()
907 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() local
908 uint64_t b_offset = logical_offset >> ashift; in vdev_draid_logical_to_physical()
915 uint64_t rowheight_sectors = VDEV_DRAID_ROWHEIGHT >> ashift; in vdev_draid_logical_to_physical()
956 (b_offset / groupwidth)) << ashift); in vdev_draid_logical_to_physical()
965 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() local
987 (io_asize >> ashift) % vdc->vdc_groupwidth == 0); in vdev_draid_map_alloc_row()
1009 const uint64_t psize = io_size >> ashift; in vdev_draid_map_alloc_row()
[all …]
H A Dvdev_missing.c48 uint64_t *ashift, uint64_t *pshift) in vdev_missing_open() argument
59 *ashift = 0; in vdev_missing_open()
H A Dvdev_root.c86 uint64_t *ashift, uint64_t *pshift) in vdev_root_open() argument
119 *ashift = 0; in vdev_root_open()
/src/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_status.c148 uint64_t ashift = *(uint64_t *)arg; in vdev_non_native_ashift() local
151 (ashift == 0 || vs->vs_configured_ashift < ashift) && in vdev_non_native_ashift()
227 zpool_errata_t *erratap, const char *compat, uint64_t ashift) in check_status() argument
439 find_vdev_problem(nvroot, vdev_non_native_ashift, &ashift, B_FALSE)) in check_status()
519 uint64_t ashift = zpool_get_prop_int(zhp, ZPOOL_PROP_ASHIFT, NULL); in zpool_get_status() local
522 compatibility, ashift); in zpool_get_status()
/src/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[@]}"
/src/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_vdev.c273 make_leaf_vdev(const char *arg, boolean_t is_primary, uint64_t ashift) in make_leaf_vdev() argument
387 if (ashift == 0) { in make_leaf_vdev()
391 ashift = highbit64(sector_size) - 1; in make_leaf_vdev()
394 if (ashift > 0) in make_leaf_vdev()
395 (void) nvlist_add_uint64(vdev, ZPOOL_CONFIG_ASHIFT, ashift); in make_leaf_vdev()
1490 uint64_t ashift = 0; in construct_spec() local
1497 if (zfs_nicestrtonum(NULL, value, &ashift) != 0) { in construct_spec()
1502 if (ashift != 0 && in construct_spec()
1503 (ashift < ASHIFT_MIN || ashift > ASHIFT_MAX)) { in construct_spec()
1508 ashift, ASHIFT_MIN, ASHIFT_MAX); in construct_spec()
[all …]
/src/usr.sbin/makefs/
H A Dzfs.c95 { '\0', "ashift", &zfs->ashift, OPT_INT32, in zfs_prep_opts()
151 assert(zfs->ashift != 0); in zfs_size_vdev()
156 vdevsize = rounddown2(fsopts->maxsize, 1 << zfs->ashift); in zfs_size_vdev()
161 1 << zfs->ashift); in zfs_size_vdev()
243 if (zfs->ashift == 0) in zfs_check_opts()
244 zfs->ashift = 12; in zfs_check_opts()
329 nvlist_add_uint64(diskvdevnv, ZPOOL_CONFIG_ASHIFT, zfs->ashift); in pool_disk_vdev_config_nvcreate()
599 uoff += ASHIFT_UBERBLOCK_SIZE(zfs->ashift)) { in pool_labels_write()
657 blksz = MIN(MAXBLOCKSIZE, MAX(1 << zfs->ashift, in dnode_cursor_init()
/src/sys/contrib/openzfs/cmd/
H A Dzhack.c813 #define ASHIFT_UBERBLOCK_SHIFT(ashift) \ argument
814 MIN(MAX(ashift, UBERBLOCK_SHIFT), \
816 #define ASHIFT_UBERBLOCK_SIZE(ashift) \ argument
817 (1ULL << ASHIFT_UBERBLOCK_SHIFT(ashift))
885 zhack_repair_get_ashift(nvlist_t *cfg, const int l, uint64_t *ashift) in zhack_repair_get_ashift() argument
900 ZPOOL_CONFIG_ASHIFT, ashift); in zhack_repair_get_ashift()
908 if (*ashift == 0) { in zhack_repair_get_ashift()
996 const uint64_t ashift, const int fd, const int byteswap, in zhack_repair_write_uberblock() argument
1003 ((char *)(ub_data) + (ASHIFT_UBERBLOCK_SIZE(ashift))) - 1; in zhack_repair_write_uberblock()
1022 ASHIFT_UBERBLOCK_SIZE(ashift))) in zhack_repair_write_uberblock()
[all …]
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_raw_ashift.ksh159 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
/src/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 …]
/src/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_file_os.c118 uint8_t ashift, ssize_t *resid) in zfs_file_pwrite() argument
120 (void) ashift; in zfs_file_pwrite()
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/no_space/
H A Denospc_003_pos.ksh58 log_must zpool create -o ashift=13 $TESTPOOL1 $DISK_LARGE
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/gang_blocks/
H A Dgang_blocks_dyn_multi.ksh36 log_must zpool create -f -o ashift=12 -o feature@dynamic_gang_header=enabled $TESTPOOL $DISKS
H A Dgang_blocks_dyn_header_neg.ksh36 log_must zpool create -f -o ashift=9 -o feature@dynamic_gang_header=enabled $TESTPOOL $DISKS
/src/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c612 size_t count, loff_t pos, uint8_t ashift, ssize_t *resid) in zfs_file_pwrite() argument
622 sectors = count >> ashift; in zfs_file_pwrite()
623 split = (sectors > 0 ? rand() % sectors : 0) << ashift; in zfs_file_pwrite()

123