1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00

Really switch device number in lvmcache when it says it is doing so.

This commit is contained in:
Alasdair Kergon 2005-09-16 18:44:52 +00:00
parent 7c2ef08367
commit 72a16423d2

View File

@ -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) {