-/* $OpenBSD: gpt.c,v 1.89 2023/04/07 16:34:41 krw Exp $ */
+/* $OpenBSD: gpt.c,v 1.90 2023/05/10 12:59:47 krw Exp $ */
/*
* Copyright (c) 2015 Markus Muller <mmu@grummel.net>
* Copyright (c) 2015 Kenneth R Westerback <krw@openbsd.org>
void
GPT_print_part(const unsigned int pn, const char *units, const int verbosity)
{
- const uint8_t gpt_uuid_msdos[] = GPT_UUID_MSDOS;
const struct unit_type *ut;
- struct uuid uuid;
char *guidstr = NULL;
double size;
uint64_t attrs, end, start;
printf("Ignore ");
if (attrs & GPTPARTATTR_BOOTABLE)
printf("Bootable ");
- uuid_dec_be(gpt_uuid_msdos, &uuid);
- if (uuid_compare(&uuid, &gp[pn].gp_type, NULL) == 0) {
- if (attrs & GPTPARTATTR_MS_READONLY)
- printf("ReadOnly " );
- if (attrs & GPTPARTATTR_MS_SHADOW)
- printf("Shadow ");
- if (attrs & GPTPARTATTR_MS_HIDDEN)
- printf("Hidden ");
- if (attrs & GPTPARTATTR_MS_NOAUTOMOUNT)
- printf("NoAutoMount ");
- }
+ if (attrs & GPTPARTATTR_MS_READONLY)
+ printf("MSReadOnly " );
+ if (attrs & GPTPARTATTR_MS_SHADOW)
+ printf("MSShadow ");
+ if (attrs & GPTPARTATTR_MS_HIDDEN)
+ printf("MSHidden ");
+ if (attrs & GPTPARTATTR_MS_NOAUTOMOUNT)
+ printf("MSNoAutoMount ");
printf("\n");
}
}