mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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.
This commit is contained in:
parent
53aff9322e
commit
ca67cf84df
1
lib/cache/lvmcache.c
vendored
1
lib/cache/lvmcache.c
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user