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, 6 May 2021 18:32:27 +0000 (12:32 -0600)
commit420dbe763f15b076751443edfeeb4f676deb3c44
tree07e6a0f1e89faa7b79a0d32035eb2d1660c5f41d
parentbe578b67b5a5bedbbec61c7164875b6b1e1b8fff
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
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D29941
sys/geom/multipath/g_multipath.c
tests/sys/geom/class/multipath/misc.sh