gpart: append partition name to the underlying provider's physical path
authorasomers <asomers@FreeBSD.org>
Wed, 14 Feb 2018 20:26:09 +0000 (20:26 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 14 Feb 2018 20:26:09 +0000 (20:26 +0000)
commit605b141a341af62293483055461b62cab0693f10
treeefb68adc5cad851bd5df05963d9d543860fc3c3c
parent29b1a3d97d3b585dcd783580618205dd12f9a50f
gpart: append partition name to the underlying provider's physical path

If the underlying provider's physical path is null, then the gpart device's
physical path will be, too. Otherwise, it will append the partition name,
such as "/p1" or "/s1/a". This will make gpart work better with zfsd(8).

PR: 224965
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D14010
sys/geom/part/g_part.c
tests/sys/geom/class/Makefile
tests/sys/geom/class/part/Makefile [new file with mode: 0644]
tests/sys/geom/class/part/misc.sh [new file with mode: 0644]