From: Karel Zak Date: Thu, 18 Feb 2010 22:04:22 +0000 (+0100) Subject: blkid: encode PART_ENTRY_TYPE X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcc58f62c48b2a059a2068b247d3886bb21ca148;p=util-linux blkid: encode PART_ENTRY_TYPE Signed-off-by: Karel Zak --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 882eeaad..1dfea7cd 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -255,7 +255,8 @@ static void print_udev_format(const char *name, const char *value, size_t sz) } else if (!strcmp(name, "PTTYPE")) { printf("ID_PART_TABLE_TYPE=%s\n", value); - } else if (!strcmp(name, "PART_ENTRY_NAME")) { + } else if (!strcmp(name, "PART_ENTRY_NAME") || + !strcmp(name, "PART_ENTRY_TYPE")) { blkid_safe_string(value, safe, sizeof(safe)); printf("ID_%s=%s\n", name, safe); diff --git a/shlibs/blkid/src/partitions/partitions.c b/shlibs/blkid/src/partitions/partitions.c index 35fd8b28..9c3296e9 100644 --- a/shlibs/blkid/src/partitions/partitions.c +++ b/shlibs/blkid/src/partitions/partitions.c @@ -37,7 +37,7 @@ * * @PART_ENTRY_UUID: partition UUID (gpt only) * - * @PART_ENTRY_TYPE: partition type, 0xNN (e.g 0x82) or type UUID (gpt only) + * @PART_ENTRY_TYPE: partition type, 0xNN (e.g 0x82) or type UUID (gpt only) or type string (mac) * * @PART_ENTRY_FLAGS: partition flags (e.g. boot_ind) or attributes (e.g. gpt attributes) *