freebsd-dev/cddl/usr.sbin/zfsd
Alan Somers 12a88a3d63 zfsd should be able to online an L2ARC that disappears and returns
Previously, this didn't work because L2ARC devices' labels don't contain
pool GUIDs.  Modify zfsd so that the pool GUID won't be required:

lib/libdevdctl/guid.h
	Change INVALID_GUID from a uint64_t constant to a function that
	returns an invalid Guid object.  Remove the void constructor.
	Nothing uses it, and it violates RAII.

cddl/usr.sbin/zfsd/case_file.h
cddl/usr.sbin/zfsd/case_file.cc
	Allow CaseFile::Find to match a CaseFile based on Vdev GUID alone.
	In CaseFile::ReEvaluate, attempt to online devices even if the newly
	arrived device has no pool GUID.

cddl/usr.sbin/zfsd/vdev_iterator.cc
	Iterate through a pool's cache devices as well as its regular
	devices.

Reported by:	avg
Reviewed by:	avg
MFC after:	3 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D12791
2017-10-26 15:28:18 +00:00
..
tests Utilize SYSROOT from r320119 in places where DESTDIR may be wanting WORLDTMP. 2017-06-19 20:47:24 +00:00
callout.cc
callout.h zfsd: minor spelling fix. 2016-05-30 19:32:56 +00:00
case_file.cc zfsd should be able to online an L2ARC that disappears and returns 2017-10-26 15:28:18 +00:00
case_file.h zfsd should be able to online an L2ARC that disappears and returns 2017-10-26 15:28:18 +00:00
Makefile Remove unnecessary variable (SRCDIR) replaced by SRCTOP in Makefile.common 2016-08-29 19:07:48 +00:00
Makefile.common Use SRCTOP instead of a homegrown definition for it (SRCDIR) 2016-08-29 19:06:40 +00:00
Makefile.depend DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
vdev_iterator.cc zfsd should be able to online an L2ARC that disappears and returns 2017-10-26 15:28:18 +00:00
vdev_iterator.h
vdev.cc
vdev.h Add an empty virtual destructor to zfsd's Vdev class. This is needed 2016-08-29 18:51:49 +00:00
zfsd_event.cc Close a memory leak when using zpool_read_all_labels 2017-09-25 20:44:40 +00:00
zfsd_event.h
zfsd_exception.cc
zfsd_exception.h
zfsd_main.cc
zfsd.8
zfsd.cc zfsd(8): Remove pidfile on shutdown 2017-06-20 19:45:02 +00:00
zfsd.h
zpool_list.cc
zpool_list.h