]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r329273, r329275, r329277, r329284, r329344
authorasomers <asomers@FreeBSD.org>
Sat, 10 Mar 2018 03:34:27 +0000 (03:34 +0000)
committerasomers <asomers@FreeBSD.org>
Sat, 10 Mar 2018 03:34:27 +0000 (03:34 +0000)
commita804ad249fd8400062f1e51eecc7b4675258b0f3
tree85d44ee8338e0c19a9015afb3937632efc15f77f
parentba9783a1436a2178e824662c2ecff3544e63b1c9
MFC r329273, r329275, r329277, r329284, r329344

r329273:
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
Differential Revision: https://reviews.freebsd.org/D13979

r329275:
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
Differential Revision: https://reviews.freebsd.org/D14010

r329277:
Add mtree entry for 329275

X-MFC-With: 329275
Sponsored by: Spectra Logic Corp

r329284:
zfsd: Allow zfsd to work on any type of GEOM provider

cddl/usr.sbin/zfsd/zfsd_event.cc
Remove the check for da and ada devices.  This way zfsd can work on md,
geli, glabel, gstripe, etc devices.  geli in particular is useful
combined with ZFS.  gnop is also useful for simulating drive pulls in
the ZFSD test suite.

Also, eliminate the DevfsEvent class entirely.  Move its
responsibilities into GeomEvent.  We can get everything we need to know
just from listening to GEOM events.

lib/libdevdctl/event.cc
Fix GeomEvent::DevName for CREATE events.  Oddly, the relevant field is
named "cdev" for CREATE events but "devname" for disk events.

Relnotes: Yes (probably worth mentioning the geli part)
Sponsored by: Spectra Logic Corp

r329344:
Optimize zfsd for the happy case

If there are no damaged pools, then ignore all GEOM events.  We only use
them to fix damaged pools.  However, still pay attention to ZFS events.

X-MFC-With: 329284
Sponsored by: Spectra Logic Corp
14 files changed:
cddl/usr.sbin/zfsd/case_file.cc
cddl/usr.sbin/zfsd/case_file.h
cddl/usr.sbin/zfsd/zfsd.cc
cddl/usr.sbin/zfsd/zfsd_event.cc
cddl/usr.sbin/zfsd/zfsd_event.h
etc/mtree/BSD.tests.dist
lib/libdevdctl/event.cc
sys/geom/eli/g_eli.c
sys/geom/part/g_part.c
tests/sys/geom/class/Makefile
tests/sys/geom/class/eli/Makefile
tests/sys/geom/class/eli/misc_test.sh [new file with mode: 0644]
tests/sys/geom/class/part/Makefile [new file with mode: 0644]
tests/sys/geom/class/part/misc.sh [new file with mode: 0644]