1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

Check if lp.origin exists

Currently needed for _determine_snapshot_type().
This commit is contained in:
Zdenek Kabelac 2011-09-07 09:25:51 +00:00
parent 59cf7b6f6c
commit 0d505fb408

View File

@ -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;
}