diff options
Diffstat (limited to 'tools/lvcreate.c')
-rw-r--r-- | tools/lvcreate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 5a4bced45..3a7963e44 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -1256,6 +1256,9 @@ int lvcreate(struct cmd_context *cmd, int argc, char **argv) return_ECMD_FAILED; } + if (!access_vg(cmd, vg)) + goto_out; + if (lp.snapshot && lp.origin_name && !_determine_snapshot_type(vg, &lp)) goto_out; |