mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 09:59:19 -04:00
sparse test: test for transformation of all-zero blocks into CH_ALLOC chunks
This commit is contained in:
parent
2ef669945f
commit
9f73862d51
1 changed files with 5 additions and 3 deletions
|
|
@ -427,11 +427,13 @@ def test_filefmapreader_with_real_sparse_file(tmpdir):
|
|||
{"data_type": bytes, "allocation": CH_DATA, "size": BS},
|
||||
]
|
||||
|
||||
# Expected chunks when reading with sparse=False
|
||||
# Expected chunks when reading with sparse=False.
|
||||
# Even though it is not differentiating data vs hole ranges, it still
|
||||
# transforms detected all-zero blocks to CH_ALLOC chunks.
|
||||
expected_chunks_non_sparse = [
|
||||
{"data_type": bytes, "allocation": CH_DATA, "size": BS},
|
||||
{"data_type": bytes, "allocation": CH_DATA, "size": BS},
|
||||
{"data_type": bytes, "allocation": CH_DATA, "size": BS},
|
||||
{"data_type": type(None), "allocation": CH_ALLOC, "size": BS},
|
||||
{"data_type": type(None), "allocation": CH_ALLOC, "size": BS},
|
||||
{"data_type": bytes, "allocation": CH_DATA, "size": BS},
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue