svn commit: r276123 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Will Andrews will at firepipe.net
Thu Dec 25 21:17:53 UTC 2014


Why was the original condition there? It may not be documented in a
commenf, but presumably there is a reason. Did you ask the original author
of the code in question?

--Will.


On Tuesday, December 23, 2014, Steven Hartland <smh at freebsd.org> wrote:

> Author: smh
> Date: Tue Dec 23 09:31:24 2014
> New Revision: 276123
> URL: https://svnweb.freebsd.org/changeset/base/276123
>
> Log:
>   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
>
> Modified:
>   head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c
>
> Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c
>
> ==============================================================================
> --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c
> Tue Dec 23 08:51:30 2014        (r276122)
> +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_config.c
> Tue Dec 23 09:31:24 2014        (r276123)
> @@ -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);
>
>


More information about the svn-src-head mailing list