diff --git a/scripts/wk/clone/ddrescue.py b/scripts/wk/clone/ddrescue.py index 43834004..ce5d60c5 100644 --- a/scripts/wk/clone/ddrescue.py +++ b/scripts/wk/clone/ddrescue.py @@ -649,11 +649,13 @@ def zero_fill_gaps( ) -> None: """Zero-fill any gaps on the destination.""" #fake_settings_menu = menus.settings(state.mode) - full_disk_clone = False + full_disk_clone = bool( + state.mode == 'Clone' + and len(state.block_pairs) == 1 + and not state.source.parent + ) larger_destination = state.source.size < dest_size percent_recovered = state.get_percent_recovered() - if state.mode == 'Clone' and len(state.block_pairs) == 1: - full_disk_clone = True # Bail early if percent_recovered == 100 and not (larger_destination and extend_to_end):