diff options
Diffstat (limited to 'tools/vgexport.c')
-rw-r--r-- | tools/vgexport.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tools/vgexport.c b/tools/vgexport.c index 9b0734c7..fce7e9f5 100644 --- a/tools/vgexport.c +++ b/tools/vgexport.c @@ -23,16 +23,6 @@ static int vgexport_single(struct cmd_context *cmd __attribute((unused)), struct pv_list *pvl; struct physical_volume *pv; - if (!vg) { - log_error("Unable to find volume group \"%s\"", vg_name); - goto error; - } - - if (!consistent) { - log_error("Volume group %s inconsistent", vg_name); - goto error; - } - if (!vg_check_status(vg, EXPORTED_VG | LVM_WRITE)) { goto error; } @@ -78,6 +68,7 @@ int vgexport(struct cmd_context *cmd, int argc, char **argv) return ECMD_FAILED; } - return process_each_vg(cmd, argc, argv, LCK_VG_WRITE, 1, NULL, + return process_each_vg(cmd, argc, argv, LCK_VG_WRITE, + VG_INCONSISTENT_ABORT, NULL, &vgexport_single); } |