1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

If lvmetad fails, don't set _has_scanned

This commit is contained in:
Alasdair Kergon 2012-02-28 18:20:17 +00:00
parent d7ca49059f
commit dea586a587

11
lib/cache/lvmcache.c vendored
View File

@ -116,10 +116,15 @@ int lvmcache_init(void)
void lvmcache_seed_infos_from_lvmetad(struct cmd_context *cmd)
{
if (lvmetad_active() && !_has_scanned) {
lvmetad_pv_list_to_lvmcache(cmd);
_has_scanned = 1;
if (!lvmetad_active() || _has_scanned)
return;
if (!lvmetad_pv_list_to_lvmcache(cmd)) {
stack;
return;
}
_has_scanned = 1;
};