From dcc58f62c48b2a059a2068b247d3886bb21ca148 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 18 Feb 2010 23:04:22 +0100 Subject: [PATCH] blkid: encode PART_ENTRY_TYPE Signed-off-by: Karel Zak --- misc-utils/blkid.c | 3 ++- shlibs/blkid/src/partitions/partitions.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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) * -- 2.39.5