summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-05-08 14:38:26 -0500
committerDavid Teigland <teigland@redhat.com>2015-05-08 14:41:05 -0500
commitca67cf84df6015c990618de3dc45c0b87eee75ce (patch)
tree2063e98bcc3a73ee07f24f8aa0b40e1e604411ed
parent53aff9322e6be8f805688445fb7d7d8825d53692 (diff)
downloadlvm2-ca67cf84df6015c990618de3dc45c0b87eee75ce.tar.gz
lvmcache: set device in label when switching devs
When using lvmetad, the reporter code was not reporting the new preferred device because the new preferred dev was not being set in the label struct.
-rw-r--r--lib/cache/lvmcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index d44f9d4aa..ad58115b1 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -1880,6 +1880,7 @@ struct lvmcache_info *lvmcache_add(struct labeller *labeller, const char *pvid,
info->label->info = info;
}
label = info->label;
+ label->dev = dev;
}
info->fmt = labeller->fmt;