K 10 svn:author V 7 asomers K 8 svn:date V 27 2013-10-14T20:51:51.109037Z K 7 svn:log V 1154 Move parsing policy for invalid GUIDs into the Guid class. cddl/sbin/zfsd/guid.cc: cddl/sbin/zfsd/guid.h: o Allow a Guid to be constructed from a string. The empty string is treated as an invalid Guid. o Rename NONE_FLAG to INVALID_GUID to clarify its meaning. The concept of a Guid being "none" only applies in certain contexts like reading a spare label. cddl/sbin/zfsd/dev_ctl_event.cc: Modify ZfsEvent's constructor to just use Guid's string contructor instead of embedding logic to manually create invalid guids when these nvpairs do not exist. stable/cddl/sbin/zfsd/vdev.cc: Rely on Guid's default constructor creating an invalid guid to simplify the handling of pool GUIDs parsed from a label. This also fixes a vdev/pool guid variable mixup bug that, due to Guid's default construction, had no ill effects. Submitted by: gibbs Approved by: ken (mentor) Sponsored By: Spectra Logic Corporation END