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:
parent
59cf7b6f6c
commit
0d505fb408
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user