]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r300881, r302058 (by asomers):
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 28 Oct 2016 18:25:32 +0000 (18:25 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 28 Oct 2016 18:25:32 +0000 (18:25 +0000)
commit5ca55b4e7e9cea28e562c14bfbb75824585cf012
tree5f44797268aed769b43b3764a0c95f7c55e4332b
parent2a94c7b92c8e683bcdb25e6435342ee199a1908b
MFC r300881, r302058 (by asomers):
Avoid issuing spa config updates for physical path when not necessary

ZFS's configuration needs to be updated whenever the physical path for a
device changes, but not when a new device is introduced. This is because new
devices necessarily cause config updates, but only if they are actually
accepted into the pool.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
        Split vdev_geom_set_physpath out of vdev_geom_attrchanged.  When
        setting the vdev's physical path, only request a config update if
        the physical path has changed.  Don't request it when opening a
        device for the first time, because the config sync will happen
        anyway upstack.

sys/geom/geom_dev.c
        Split g_dev_set_physpath and g_dev_set_media out of
        g_dev_attrchanged

git-svn-id: svn://svn.freebsd.org/base/stable/10@308061 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
sys/geom/geom_dev.c