Skip to content

Commit

Permalink
Verify integrity metadata allocation is rounded
Browse files Browse the repository at this point in the history
It should be a multiple of 8 512 byte sectors

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Aug 12, 2024
1 parent a8ea927 commit 66dc719
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testlib/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ def _check_integrity_meta_allocs(self, metadata):
self.assertGreater(len(integrity_meta_allocs), 0)

for alloc in integrity_meta_allocs:
self.assertGreater(alloc[0], 0)
self.assertGreater(alloc[1], 0)
start, length = Range(alloc[0], 512), Range(alloc[1], 512)
self.assertGreater(start, Range(0))
self.assertEqual(length % Range(8, 512), Range(0))

def run_check(self, stop_time):
"""
Expand Down

0 comments on commit 66dc719

Please sign in to comment.