geli: append "/eli" to the underlying provider's physical path
authorasomers <asomers@FreeBSD.org>
Wed, 14 Feb 2018 20:15:32 +0000 (20:15 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 14 Feb 2018 20:15:32 +0000 (20:15 +0000)
commitd2bcc1e2c3181c5800015ba88c712645df8ff942
tree0b3d89290eb9334c44e87ea52878afb158663f41
parentdb51b6bdae24d7c6a046a3689db00964ba0196f4
geli: append "/eli" to the underlying provider's physical path

If the underlying provider's physical path is null, then the geli device's
physical path will be, too. Otherwise, it will append "/eli".  This will make
geli work better with zfsd(8).

PR: 224962
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D13979
sys/geom/eli/g_eli.c
tests/sys/geom/class/eli/Makefile
tests/sys/geom/class/eli/misc_test.sh [new file with mode: 0644]