diff options
author | jhb <jhb@FreeBSD.org> | 2008-04-07 18:23:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-04-07 18:23:28 +0000 |
commit | be8c113316e5c7abf8f511b8c12ee79237490124 (patch) | |
tree | 0c0491d5d0243c50b33c66132fd2b70b6ae7ebe5 /sbin | |
parent | e83dd39a0049906446a5f11f7ea419bfa00e56d1 (diff) | |
download | FreeBSD-src-be8c113316e5c7abf8f511b8c12ee79237490124.zip FreeBSD-src-be8c113316e5c7abf8f511b8c12ee79237490124.tar.gz |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/gpt/gpt.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |