summaryrefslogtreecommitdiffstats
path: root/sbin/gpt/gpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/gpt/gpt.c')
-rw-r--r--sbin/gpt/gpt.c7
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;
OpenPOWER on IntegriCloud