Add 'zfs' as an alias for the FreeBSD ZFS UUID.

MFC after:	3 days
PR:		bin/119976
Submitted by:	Cian Hughes  Ci of nhugh.es
This commit is contained in:
John Baldwin 2008-04-07 18:23:28 +00:00
parent 58e9afacb4
commit dc4ee2cf88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177984

View File

@ -317,6 +317,13 @@ parse_uuid(const char *s, uuid_t *uuid)
return (0);
}
break;
case 'z':
if (strcmp(s, "zfs") == 0) {
uuid_t zfs = GPT_ENT_TYPE_FREEBSD_ZFS;
*uuid = zfs;
return (0);
}
break;
}
return (EINVAL);
}