zfs/tests/zfs-tests/tests/functional/cli_root
Brian Behlendorf aee26af277 Update cache file when setting compatibility property
Unlike most other properties the 'compatibility' property is stored
in the pool config object and not the DMU_OT_POOL_PROPS object.

This had the advantage that the compatibility information is available
without needing to fully import the pool (it can be read with zdb).
However, this means we need to make sure to update both the copy of
the config in the MOS and the cache file.  This wasn't being done.

This commit adds a call to spa_async_request() to ensure the copy of
the config in the cache file gets updated as well as the one stored
in the pool.  This same change is made for the 'comment' property
which suffers from the same inconsistency.

Reviewed-by: Sean Eric Fagan <sef@ixsystems.com>
Reviewed-by: Colm Buckley <colm@tuatha.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #12261 
Closes #12276
2021-06-24 14:33:51 -07:00
..
zdb Quick fixes for two ZTS failures 2021-06-09 13:05:34 -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 Update references to nonexistent man pages in code 2020-10-30 08:55:59 -07:00
zfs_create Add -u option to 'zfs create' 2020-12-04 14:01:42 -08:00
zfs_destroy ZTS: Add zfs_clone_livelist_dedup.ksh to Makefile.am 2021-06-15 16:55:31 -07:00
zfs_diff ZTS: Eliminate functions named 'random' 2020-01-08 09:08:30 -08:00
zfs_get zfs get -p only outputs 3 columns if "clones" property is empty 2021-04-07 13:28:14 -07: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 Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -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 receive: don't fail inheriting (-x) properties on wrong dataset type 2021-05-10 12:06:11 -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: avoid race to unmount in zfs_rollback_001 2021-01-12 17:20:02 -08:00
zfs_send Allow zfs to send replication streams with missing snapshots 2021-04-14 13:19:50 -07:00
zfs_set ZTS: improve output clarity of check_prop_source 2021-01-25 14:39:58 -08:00
zfs_share ZTS: Update zfs_share_concurrent_shares.ksh 2020-12-06 09:47:33 -08:00
zfs_snapshot Start snapdir_iterate traversals to begin wtih the value of zero. 2020-11-11 17:06:16 -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: Improve cleanup in zpool tests 2021-03-07 09:41:01 -08:00
zpool_add Fix various typos 2021-04-07 13:27:11 -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 Update cache file when setting compatibility property 2021-06-24 14:33:51 -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 Trim excess shellcheck annotations. Widen to all non-Korn scripts 2021-06-08 14:46:31 -07:00
zpool_expand Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zpool_export ZTS: zpool_export test improvements 2021-01-26 13:14:04 -08:00
zpool_get Add "compatibility" property for zpool feature sets 2021-02-17 21:30:45 -08:00
zpool_history Fix typos in tests/ 2019-09-02 18:12:01 -07:00
zpool_import zpool import cachefile improvements 2021-03-12 15:42:27 -08:00
zpool_initialize Cancel TRIM / initialize on FAULTED non-writeable vdevs 2021-03-02 10:27:27 -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: three small follow up fixes for #11167 2020-12-09 21:27:12 -08:00
zpool_status Add "compatibility" property for zpool feature sets 2021-02-17 21:30:45 -08:00
zpool_sync OpenZFS 9166 - zfs storage pool checkpoint 2018-06-26 10:07:42 -07:00
zpool_trim Cancel TRIM / initialize on FAULTED non-writeable vdevs 2021-03-02 10:27:27 -08:00
zpool_upgrade Add "compatibility" property for zpool feature sets 2021-02-17 21:30:45 -08:00
zpool_wait Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
Makefile.am FreeBSD: Fix `zfs jail` and add a test 2020-08-01 08:44:54 -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