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:
parent
d7ca49059f
commit
dea586a587
11
lib/cache/lvmcache.c
vendored
11
lib/cache/lvmcache.c
vendored
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user