diff options
author | smh <smh@FreeBSD.org> | 2014-12-23 09:31:24 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2014-12-23 09:31:24 +0000 |
commit | 325b63f583cb0ae48f071329f6704dd5336dc5a5 (patch) | |
tree | af3ca4f03a8e8d8321820a6e9b2243c2a7c1d656 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c | |
parent | ec0933ddac78e9e1f34a4398b1be6ec921f41e6e (diff) | |
download | FreeBSD-src-325b63f583cb0ae48f071329f6704dd5336dc5a5.zip FreeBSD-src-325b63f583cb0ae48f071329f6704dd5336dc5a5.tar.gz |
Always sync the global ZFS config cache to reflect the new mosconfig
This fixes out of date zpool.cache for root pools, which can cause issues
such as confusion of zdb etc.
MFC after: 1 month
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c index 2d0cf23..c4ee741 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c @@ -536,8 +536,7 @@ spa_config_update(spa_t *spa, int what) /* * Update the global config cache to reflect the new mosconfig. */ - if (!spa->spa_is_root) - spa_config_sync(spa, B_FALSE, what != SPA_CONFIG_UPDATE_POOL); + spa_config_sync(spa, B_FALSE, what != SPA_CONFIG_UPDATE_POOL); if (what == SPA_CONFIG_UPDATE_POOL) spa_config_update(spa, SPA_CONFIG_UPDATE_VDEVS); |