Limit badblocks scan to minimum in test_mode
This commit is contained in:
parent
a324e71ba9
commit
25b64d6852
1 changed files with 2 additions and 0 deletions
|
|
@ -66,6 +66,8 @@ def calc_io_dd_values(dev_size, test_mode=False) -> dict[str, int]:
|
|||
|
||||
test_mode limits the benchmark to IO_MINIMUM_TEST_SIZE (if possible)
|
||||
"""
|
||||
if test_mode and dev_size > IO_MINIMUM_TEST_SIZE:
|
||||
dev_size = IO_MINIMUM_TEST_SIZE
|
||||
read_total = min(IO_MINIMUM_TEST_SIZE, dev_size)
|
||||
read_total = max(read_total, dev_size*IO_ALT_TEST_SIZE_FACTOR)
|
||||
read_chunks = int(read_total // IO_CHUNK_SIZE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue