From 94c8c2ba011e0fe95ac8cc22681e27fc0068d2f3 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 22 Oct 2023 19:53:04 -0700 Subject: [PATCH] Fix detection of full clones in zero_fill_gaps() This prevents using the wrong domain size and crashing ddrescue. --- scripts/wk/clone/ddrescue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wk/clone/ddrescue.py b/scripts/wk/clone/ddrescue.py index ce5d60c5..0554c570 100644 --- a/scripts/wk/clone/ddrescue.py +++ b/scripts/wk/clone/ddrescue.py @@ -652,7 +652,7 @@ def zero_fill_gaps( full_disk_clone = bool( state.mode == 'Clone' and len(state.block_pairs) == 1 - and not state.source.parent + and state.source.path == state.block_pairs[0].source ) larger_destination = state.source.size < dest_size percent_recovered = state.get_percent_recovered()