mirror_zfs/tests/zfs-tests/tests/functional/cli_root
George Wilson c494aa7f57
vdev_ashift should only be set once
== Motivation and Context

The new vdev ashift optimization prevents the removal of devices when
a zfs configuration is comprised of disks which have different logical
and physical block sizes. This is caused because we set 'spa_min_ashift'
in vdev_open and then later call 'vdev_ashift_optimize'. This would
result in an inconsistency between spa's ashift calculations and that
of the top-level vdev.

In addition, the optimization logical ignores the overridden ashift
value that would be provided by '-o ashift=<val>'.

== Description

This change reworks the vdev ashift optimization so that it's only
set the first time the device is configured. It still allows the
physical and logical ahsift values to be set every time the device
is opened but those values are only consulted on first open.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Cedric Berger <cedric@precidata.com>
Signed-off-by: George Wilson <gwilson@delphix.com>
External-Issue: DLPX-71831
Closes #10932
2020-09-18 12:13:47 -07:00
..
zdb Add zstd support to zfs 2020-08-20 10:30:06 -07:00
zfs Use the correct spelling of 'jailed' in tests 2020-01-31 08:52:29 -08:00
zfs_bookmark Avoid core dump on invalid redaction bookmark 2020-03-18 12:54:12 -07:00
zfs_change-key Fix 'zfs change-key' with unencrypted child 2019-10-30 11:27:28 -07:00
zfs_clone Fixes for make dist 2020-06-26 14:20:02 -07:00
zfs_copies ZTS: Fix zfs_copies_002_pos 2020-02-26 14:29:12 -08:00
zfs_create zfs_create: round up volume size to multiple of bs 2020-04-24 19:04:34 -07:00
zfs_destroy zfs promote does not delete livelist of origin 2020-07-31 08:59:00 -07:00
zfs_diff ZTS: Eliminate functions named 'random' 2020-01-08 09:08:30 -08:00
zfs_get Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
zfs_ids_to_path Fix typos 2020-06-09 21:24:09 -07:00
zfs_inherit Use the correct spelling of 'jailed' in tests 2020-01-31 08:52:29 -08:00
zfs_jail FreeBSD: Fix zfs jail and add a test 2020-08-01 08:44:54 -07:00
zfs_load-key Clean up (k)shlib and cfg file shebangs 2018-04-08 19:37:22 -07:00
zfs_mount ZTS: Fix zfs_mount.kshlib cleanup 2020-05-23 17:13:42 -07:00
zfs_program ZTS: zfs_program_json 2019-12-27 12:12:41 -08:00
zfs_promote Fix clone handling with encryption roots 2019-09-16 10:07:33 -07:00
zfs_property ZTS: Written props test fails with 4k disks 2019-10-18 13:27:02 -04:00
zfs_receive Always track temporary fses and snapshots for accounting 2020-08-26 21:38:27 -07:00
zfs_rename Add 'zfs rename -u' to rename without remounting 2020-09-01 16:14:16 -07:00
zfs_reservation OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zfs_rollback ZTS: Misc fixes for FreeBSD 2020-02-24 10:17:55 -08:00
zfs_send Fixes for make dist 2020-06-26 14:20:02 -07:00
zfs_set Add zstd support to zfs 2020-08-20 10:30:06 -07:00
zfs_share 'zfs share -a' should clean noauto exports 2020-08-20 13:12:12 -07:00
zfs_snapshot Use the correct spelling of 'jailed' in tests 2020-01-31 08:52:29 -08:00
zfs_sysfs Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
zfs_unload-key Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
zfs_unmount ZTS: Misc fixes for FreeBSD 2020-02-24 10:17:55 -08:00
zfs_unshare ZTS: Refactor is_shared, fix impl on FreeBSD 2020-02-21 15:59:20 -08:00
zfs_upgrade ZTS: Add missing quotes 2020-03-04 15:10:45 -08:00
zfs_wait Add 'zfs wait' command 2020-04-01 10:02:06 -07:00
zpool ZTS: Use POSIX-compatible space character class 2020-07-31 18:11:21 -07:00
zpool_add vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool_attach vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool_clear Add subcommand to wait for background zfs activity to complete 2019-09-13 18:09:06 -07:00
zpool_create Rename acltype=posixacl to acltype=posix 2020-09-16 12:26:06 -07:00
zpool_destroy ZTS: Eliminate partitioning from zpool_destroy 2020-02-21 16:00:22 -08:00
zpool_detach OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
zpool_events Avoid posting duplicate zpool events 2020-09-04 10:34:28 -07:00
zpool_expand zed: detect and offline physically removed devices 2018-11-09 11:17:24 -08:00
zpool_export ZTS: Fix incorrect is_physical_device usage 2020-01-16 13:26:26 -08:00
zpool_get Add zstd support to zfs 2020-08-20 10:30:06 -07:00
zpool_history Fix typos in tests/ 2019-09-02 18:12:01 -07:00
zpool_import ZTS: Retry export/destroy when busy in zpool_import_012 2020-05-27 17:18:06 -07:00
zpool_initialize ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
zpool_labelclear ZTS: Avoid nonportable cmp flag 2020-02-19 09:03:31 -08:00
zpool_offline Force fault a vdev with 'zpool offline -f' 2017-05-19 12:30:16 -07:00
zpool_online Wait for resilver after online 2018-04-13 18:04:10 -07:00
zpool_remove ZTS: Eliminate partitioning from zpool_remove 2020-02-13 12:10:35 -08:00
zpool_reopen ZTS: Fix a few defaults 2020-01-31 08:51:23 -08:00
zpool_replace vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool_resilver ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
zpool_scrub ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
zpool_set vdev_ashift should only be set once 2020-09-18 12:13:47 -07:00
zpool_split ZTS: zpool_split_indirect deletes zfstest log file 2020-05-14 09:39:47 -07:00
zpool_status Move some tests to cli_user/zpool_status 2019-07-19 11:21:54 -07:00
zpool_sync OpenZFS 9166 - zfs storage pool checkpoint 2018-06-26 10:07:42 -07:00
zpool_trim ZTS: Misc test fixes for FreeBSD 2020-02-13 13:52:34 -08:00
zpool_upgrade ZTS: Eliminate functions named 'random' 2020-01-08 09:08:30 -08:00
zpool_wait Add device rebuild feature 2020-07-03 11:05:50 -07:00
cli_common.kshlib OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
Makefile.am FreeBSD: Fix zfs jail and add a test 2020-08-01 08:44:54 -07:00