]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298072
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 16 May 2016 17:23:57 +0000 (17:23 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 16 May 2016 17:23:57 +0000 (17:23 +0000)
commitedc87a79e6abcf5df6490806832ace1cd9ef4329
tree73479cfa35d17f6742ae5f8715f04cb15aa9c972
parentd7b13922491e630e37eee21246d67e072fde194b
MFC r298072

Don't corrupt ZFS label's physpath attribute when booting while a disk is
missing

Prior to this change, vdev_geom_open_by_path would call vdev_geom_attach
prior to verifying the device's GUIDs.  vdev_geom_attach calls
vdev_geom_attrchange to set the physpath in the vdev object.  The result is
that if the disk could not be found, then the labels for other disks in the
same TLD would overwrite the missing disk's physpath with the physpath of
whichever disk currently has the same devname as the missing one used to
have.

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