diff options
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 7af5a7683..b885480d5 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -206,6 +206,9 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv) !arg_count(cmd, removemissing_ARG)) goto_out; + if (!access_vg(cmd, vg)) + goto_out; + locked = !vg_read_error(vg); if (!vg_read_error(vg) && !vg_missing_pv_count(vg)) { |