mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vgimport: fall back when lvmetad is not running
If lvmetad is configured, but not running, vgimport would not fall back and run without lvmetad, but would report an error about requiring lvmetad.
This commit is contained in:
parent
3eb2d4d2ce
commit
d748b3455d
@ -91,7 +91,7 @@ int vgimport(struct cmd_context *cmd, int argc, char **argv)
|
||||
* We need to reread it to see that it's been exported before we can
|
||||
* import it.
|
||||
*/
|
||||
if (lvmetad_used() && !lvmetad_pvscan_all_devs(cmd, NULL)) {
|
||||
if (lvmetad_active() && !lvmetad_pvscan_all_devs(cmd, NULL)) {
|
||||
log_error("Failed to scan devices.");
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user