K 10 svn:author V 7 asomers K 8 svn:date V 27 2013-10-11T22:44:15.608076Z K 7 svn:log V 913 zfsd will now try to activate a spare, if one is available, when a resource dissapears. Other functionality, such as detaching the spare when the original device returns, is TBD. cddl/sbin/zfsd/vdev_iterator.h cddl/sbin/zfsd/vdev_iterator.cc cddl/sbin/zfsd/zpool_list.cc cddl/sbin/zfsd/dev_ctl_event.h cddl/sbin/zfsd/case_file.h cddl/sbin/zfsd/case_file.cc cddl/sbin/zfsd/vdev.h cddl/sbin/zfsd/vdev.cc Created a new Guid class that can have a None value. Modified the Vdev class to be able to represent available spares, which do not have pool or vdev guids. cddl/sbin/zfsd/case_file.h cddl/sbin/zfsd/case_file.cc Abstract device replacement into the CaseFile::Replace method, which is used by both ActivateSpare and replace by physical path. Try to active a hotspare whenever a vdev dissappears. Submitted by: asomers Approved by: ken (mentor) Sponsored by: Spectra Logic Corporation END