From: Jakob Cornell Date: Wed, 20 Apr 2022 18:13:10 +0000 (-0500) Subject: Verify tool: remove failed blocks from both maps X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=044957ea153884db7a136489e11c317023da78c7;p=eros.git Verify tool: remove failed blocks from both maps --- diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index e34494e..a76d918 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -366,7 +366,7 @@ def _do_verify(conn, disk_id: int, target_ranges: List[range], disk_file: io.Buf ) update diskjumble.disk_maps set - verified_map = coalesce(verified_map, int8multirange()) + new_passes, + verified_map = coalesce(verified_map, int8multirange()) + new_passes - new_fails, written_map = written_map - new_fails from new_passes, new_fails where disk_id = %(disk_id)s