mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Really switch device number in lvmcache when it says it is doing so.
This commit is contained in:
parent
7c2ef08367
commit
72a16423d2
2
lib/cache/lvmcache.c
vendored
2
lib/cache/lvmcache.c
vendored
@ -506,6 +506,8 @@ struct lvmcache_info *lvmcache_add(struct labeller *labeller, const char *pvid,
|
|||||||
"%s", pvid, dev_name(dev),
|
"%s", pvid, dev_name(dev),
|
||||||
dev_name(existing->dev));
|
dev_name(existing->dev));
|
||||||
}
|
}
|
||||||
|
/* Switch over to new preferred device */
|
||||||
|
existing->dev = dev;
|
||||||
info = existing;
|
info = existing;
|
||||||
/* Has labeller changed? */
|
/* Has labeller changed? */
|
||||||
if (info->label->labeller != labeller) {
|
if (info->label->labeller != labeller) {
|
||||||
|
Loading…
Reference in New Issue
Block a user