summaryrefslogtreecommitdiffstats
path: root/block/partitions/ldm.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-17 09:38:37 +0200
committerChristoph Hellwig <hch@lst.de>2017-06-05 16:59:14 +0200
commit59b9c6291c4fcacf2e8290d79560aa78edbbbe2e (patch)
treee35c783382f1ca47404a22908e23cb4075ae4521 /block/partitions/ldm.h
parent01633fd254182eaa9372efa5c0688bf286e60d6b (diff)
downloadlinux-0-day-59b9c6291c4fcacf2e8290d79560aa78edbbbe2e.tar.gz
linux-0-day-59b9c6291c4fcacf2e8290d79560aa78edbbbe2e.tar.xz
partitions/ldm: switch to use uuid_t
And the uuid helpers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'block/partitions/ldm.h')
-rw-r--r--block/partitions/ldm.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/block/partitions/ldm.h b/block/partitions/ldm.h
index 374242c0971a6..f4c6055df9563 100644
--- a/block/partitions/ldm.h
+++ b/block/partitions/ldm.h
@@ -112,8 +112,6 @@ struct frag { /* VBLK Fragment handling */
/* In memory LDM database structures. */
-#define GUID_SIZE 16
-
struct privhead { /* Offsets and sizes are in sectors. */
u16 ver_major;
u16 ver_minor;
@@ -121,7 +119,7 @@ struct privhead { /* Offsets and sizes are in sectors. */
u64 logical_disk_size;
u64 config_start;
u64 config_size;
- u8 disk_id[GUID_SIZE];
+ uuid_t disk_id;
};
struct tocblock { /* We have exactly two bitmaps. */
@@ -154,7 +152,7 @@ struct vblk_dgrp { /* VBLK Disk Group */
};
struct vblk_disk { /* VBLK Disk */
- u8 disk_id[GUID_SIZE];
+ uuid_t disk_id;
u8 alt_name[128];
};