]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gmultipath: make physpath distinct from the underlying providers'
authorAlan Somers <asomers@FreeBSD.org>
Thu, 22 Apr 2021 21:09:03 +0000 (15:09 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 7 Oct 2021 19:27:13 +0000 (13:27 -0600)
commit09be14a7b80d75e39faf01596583ad4ed18e3232
tree0e0296ed31f09e1a4f180980c6eb84ea740d7d03
parenta09e037bc30b8a76cb7007bc4883d62e64c90e0b
gmultipath: make physpath distinct from the underlying providers'

zfsd uses a device's physical path attribute to automatically replace a
missing ZFS disk when a blank disk is inserted into the same physical
slot.  Currently gmultipath passes through its underlying providers'
physical path attribute.  That may cause zfsd to replace a missing
gmultipath provider with a newly arrived, single-path disk.  That would
be bad.

This commit fixes that problem by simply appending "/mp" to the
underlying providers' physical path, in a manner similar to what geli
already does.

Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D29941

(cherry picked from commit 420dbe763f15b076751443edfeeb4f676deb3c44)
sys/geom/multipath/g_multipath.c
tests/sys/geom/class/multipath/misc.sh