snapshot-merge target is activated in place of origin target, so it must be resumed after all other snapshots --- otherwise small window for data corruption would exist. Signed-off-by: Mikulas Patocka --- lib/libdm-deptree.c | 3 +++ 1 file changed, 3 insertions(+) Index: device-mapper.1.02.27/lib/libdm-deptree.c =================================================================== --- device-mapper.1.02.27.orig/lib/libdm-deptree.c 2008-08-04 01:10:03.000000000 +0200 +++ device-mapper.1.02.27/lib/libdm-deptree.c 2008-08-04 01:10:51.000000000 +0200 @@ -1690,6 +1690,9 @@ static int _add_snapshot_target(struct d seg->persistent = persistent ? 1 : 0; seg->chunk_size = chunk_size; + if (merge) + node->activation_priority = 1; + return 1; }