Do not allow creating snapshots while another snapshot is merging. Snapshot created in this state would certainly contain invalid data. Signed-off-by: Mikulas Patocka --- tools/lvcreate.c | 5 +++++ 1 file changed, 5 insertions(+) Index: LVM2.2.02.43/tools/lvcreate.c =================================================================== --- LVM2.2.02.43.orig/tools/lvcreate.c 2008-11-25 19:08:45.000000000 +0100 +++ LVM2.2.02.43/tools/lvcreate.c 2008-11-25 19:18:57.000000000 +0100 @@ -660,6 +660,11 @@ static int _lvcreate(struct cmd_context "supported yet"); return 0; } + if (org->merging_snapshot) { + log_error("It is not allowed to create snapshot while " + "another snapshot is merging"); + return 0; + } if (org->status & MIRROR_IMAGE || org->status & MIRROR_LOG || org->status & MIRRORED) {