Fix detection of full clones in zero_fill_gaps()
This prevents using the wrong domain size and crashing ddrescue.
This commit is contained in:
parent
80a0d9874a
commit
94c8c2ba01
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue