]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/genhd.h
block: store partition_meta_info.uuid as a string
[mirror_ubuntu-artful-kernel.git] / include / linux / genhd.h
index 4f440b3e89fe7fd7e47ead6c6ed911f173205431..79b8bba193635c94e7318d552c3e5437062bc203 100644 (file)
@@ -88,10 +88,14 @@ struct disk_stats {
 };
 
 #define PARTITION_META_INFO_VOLNAMELTH 64
-#define PARTITION_META_INFO_UUIDLTH    16
+/*
+ * Enough for the string representation of any kind of UUID plus NULL.
+ * EFI UUID is 36 characters. MSDOS UUID is 11 characters.
+ */
+#define PARTITION_META_INFO_UUIDLTH    37
 
 struct partition_meta_info {
-       u8 uuid[PARTITION_META_INFO_UUIDLTH];   /* always big endian */
+       char uuid[PARTITION_META_INFO_UUIDLTH];
        u8 volname[PARTITION_META_INFO_VOLNAMELTH];
 };