From be8c113316e5c7abf8f511b8c12ee79237490124 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 7 Apr 2008 18:23:28 +0000 Subject: 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 --- sbin/gpt/gpt.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sbin') diff --git a/sbin/gpt/gpt.c b/sbin/gpt/gpt.c index 543acca..34258a6 100644 --- a/sbin/gpt/gpt.c +++ b/sbin/gpt/gpt.c @@ -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); } -- cgit v1.1