diff options
author | marcel <marcel@FreeBSD.org> | 2006-06-22 22:22:32 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-06-22 22:22:32 +0000 |
commit | 4499ab674633d57fb0fdedba278cfe9a156e90c7 (patch) | |
tree | 8b64e0d4b5e478825690a947eb2579b877901d85 /sbin/gpt/gpt.c | |
parent | dfa030a122779e872b25787b952b02f5ed871d0e (diff) | |
download | FreeBSD-src-4499ab674633d57fb0fdedba278cfe9a156e90c7.zip FreeBSD-src-4499ab674633d57fb0fdedba278cfe9a156e90c7.tar.gz |
Improve support for Intel based Macs:
o Accept hfs as partition type.
o Print Apple HFS partitions using a friendly name.
Diffstat (limited to 'sbin/gpt/gpt.c')
-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 569c923..38dc557 100644 --- a/sbin/gpt/gpt.c +++ b/sbin/gpt/gpt.c @@ -275,6 +275,13 @@ parse_uuid(const char *s, uuid_t *uuid) return (0); } break; + case 'h': + if (strcmp(optarg, "hfs") == 0) { + uuid_t hfs = GPT_ENT_TYPE_APPLE_HFS; + *uuid = hfs; + return (0); + } + break; case 'l': if (strcmp(optarg, "linux") == 0) { uuid_t lnx = GPT_ENT_TYPE_MS_BASIC_DATA; |