summaryrefslogtreecommitdiff
path: root/lib/mirror
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-03-11 17:13:47 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2014-03-12 00:16:20 +0100
commit6a0d97a65c793e5875fc6c4f0a815c37ed4b6d38 (patch)
tree8680d71c8f826837747a6636cf7c8daa216290dc /lib/mirror
parent4d64e91efde5335eeae6f2e0fcdf4992b054644a (diff)
downloadlvm2-6a0d97a65c793e5875fc6c4f0a815c37ed4b6d38.tar.gz
lvm: change build_dm_uuid API
Pass directly 'lv' into this build routine, so we can eventually add more private UUID suffixes.
Diffstat (limited to 'lib/mirror')
-rw-r--r--lib/mirror/mirrored.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c
index 5088173c5..e35a372eb 100644
--- a/lib/mirror/mirrored.c
+++ b/lib/mirror/mirrored.c
@@ -356,14 +356,14 @@ static int _add_log(struct dm_pool *mem, struct lv_segment *seg,
if (seg->log_lv) {
/* If disk log, use its UUID */
- if (!(log_dlid = build_dm_uuid(mem, seg->log_lv->lvid.s, NULL))) {
+ if (!(log_dlid = build_dm_uuid(mem, seg->log_lv, NULL))) {
log_error("Failed to build uuid for log LV %s.",
seg->log_lv->name);
return 0;
}
} else {
/* If core log, use mirror's UUID and set DM_CORELOG flag */
- if (!(log_dlid = build_dm_uuid(mem, seg->lv->lvid.s, NULL))) {
+ if (!(log_dlid = build_dm_uuid(mem, seg->lv, NULL))) {
log_error("Failed to build uuid for mirror LV %s.",
seg->lv->name);
return 0;