1
0
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:
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), "%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) {