summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lvcreate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvcreate.c b/tools/lvcreate.c
index 2fd9a698..dd2d9b43 100644
--- a/tools/lvcreate.c
+++ b/tools/lvcreate.c
@@ -896,7 +896,7 @@ int lvcreate(struct cmd_context *cmd, int argc, char **argv)
return ECMD_FAILED;
}
- if (lp.snapshot && !_determine_snapshot_type(vg, &lp)) {
+ if (lp.snapshot && lp.origin && !_determine_snapshot_type(vg, &lp)) {
r = ECMD_FAILED;
goto_out;
}