summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/linux_raid.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2007-12-16 19:22:32 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-12-16 19:22:32 +0100
commit5caa40bea22b9ac07dbe667985d1b8556d8b6b80 (patch)
tree1a05b3c754ab03d5b0e2bd4a29c89ae8bb1a3ea8 /extras/volume_id/lib/linux_raid.c
parent9e5920842b0b414e78b04ddd40fb4cf29b0d855c (diff)
volume_id: LVM - add uuid
Diffstat (limited to 'extras/volume_id/lib/linux_raid.c')
-rw-r--r--extras/volume_id/lib/linux_raid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/volume_id/lib/linux_raid.c b/extras/volume_id/lib/linux_raid.c
index 3c2e86e422..5e0c4a494f 100644
--- a/extras/volume_id/lib/linux_raid.c
+++ b/extras/volume_id/lib/linux_raid.c
@@ -87,7 +87,7 @@ static int volume_id_probe_linux_raid0(struct volume_id *id, uint64_t off, uint6
uuid.ints[2] = 0;
uuid.ints[3] = 0;
}
- volume_id_set_uuid(id, uuid.bytes, 0, UUID_FOURINT);
+ volume_id_set_uuid(id, uuid.bytes, 0, UUID_MD);
snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u.%u",
le32_to_cpu(mdp0->major_version),
le32_to_cpu(mdp0->minor_version),
@@ -103,7 +103,7 @@ static int volume_id_probe_linux_raid0(struct volume_id *id, uint64_t off, uint6
uuid.ints[2] = 0;
uuid.ints[3] = 0;
}
- volume_id_set_uuid(id, uuid.bytes, 0, UUID_FOURINT);
+ volume_id_set_uuid(id, uuid.bytes, 0, UUID_MD);
snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u.%u",
be32_to_cpu(mdp0->major_version),
be32_to_cpu(mdp0->minor_version),
@@ -134,7 +134,7 @@ static int volume_id_probe_linux_raid1(struct volume_id *id, uint64_t off, uint6
if (le32_to_cpu(mdp1->major_version) != 1)
return -1;
- volume_id_set_uuid(id, mdp1->set_uuid, 0, UUID_FOURINT);
+ volume_id_set_uuid(id, mdp1->set_uuid, 0, UUID_MD);
volume_id_set_label_raw(id, mdp1->set_name, 32);
volume_id_set_label_string(id, mdp1->set_name, 32);
volume_id_set_usage(id, VOLUME_ID_RAID);