diff options
Diffstat (limited to 'tools/vgextend.c')
-rw-r--r-- | tools/vgextend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgextend.c b/tools/vgextend.c index 2dc169980..ffc514d03 100644 --- a/tools/vgextend.c +++ b/tools/vgextend.c @@ -81,6 +81,9 @@ int vgextend(struct cmd_context *cmd, int argc, char **argv) return_ECMD_FAILED; } + if (!access_vg(cmd, vg)) + goto_bad; + if (!archive(vg)) goto_bad; |