1
0
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:
David Teigland 2015-05-11 09:28:47 -05:00
parent 3eb2d4d2ce
commit d748b3455d

View File

@ -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 * We need to reread it to see that it's been exported before we can
* import it. * 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."); log_error("Failed to scan devices.");
return ECMD_FAILED; return ECMD_FAILED;
} }