1
0
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:
David Teigland 2015-05-08 14:38:26 -05:00
parent 53aff9322e
commit ca67cf84df

View File

@ -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;