mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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),
|
||||
dev_name(existing->dev));
|
||||
}
|
||||
/* Switch over to new preferred device */
|
||||
existing->dev = dev;
|
||||
info = existing;
|
||||
/* Has labeller changed? */
|
||||
if (info->label->labeller != labeller) {
|
||||
|
Loading…
Reference in New Issue
Block a user