Files
erofs-freebsd-out-tree/tests/pre15/fixtures/B08-io-caps.json
T
2026-08-18 09:20:44 +02:00

86 lines
2.2 KiB
JSON

{
"schema": 1,
"candidate": "P15-074",
"harness_maxphys": 16384,
"scenarios": [
{
"id": "read-data-mapped-over-maxphys",
"api": "read_data",
"mapping": "mapped",
"inode_size": 50000,
"offset": 0,
"length": 32785,
"expected_errno": 0,
"expected_map_calls": 3,
"expected_physical_offsets": [1048576, 1064960, 1081344],
"expected_physical_lengths": [16384, 16384, 17]
},
{
"id": "read-data-hole-over-maxphys",
"api": "read_data",
"mapping": "hole",
"inode_size": 50000,
"offset": 11,
"length": 32771,
"expected_errno": 0,
"expected_map_calls": 3,
"expected_physical_offsets": [],
"expected_physical_lengths": []
},
{
"id": "read-data-overflow",
"api": "read_data",
"mapping": "mapped",
"inode_size": 18446744073709551615,
"offset": 18446744073709551612,
"length": 8,
"expected_errno": 84,
"expected_map_calls": 0,
"expected_physical_offsets": [],
"expected_physical_lengths": []
},
{
"id": "read-uio-mapped-over-maxphys",
"api": "read_uio",
"mapping": "mapped",
"inode_size": 50000,
"offset": 7,
"length": 16403,
"expected_errno": 0,
"expected_map_calls": 2,
"expected_final_offset": 16410,
"expected_resid": 0,
"expected_physical_offsets": [1048583, 1064967],
"expected_physical_lengths": [16384, 19]
},
{
"id": "read-uio-short",
"api": "read_uio",
"mapping": "mapped",
"inode_size": 50000,
"offset": 123,
"length": 9,
"expected_errno": 0,
"expected_map_calls": 1,
"expected_final_offset": 132,
"expected_resid": 0,
"expected_physical_offsets": [1048699],
"expected_physical_lengths": [9]
},
{
"id": "read-uio-eof",
"api": "read_uio",
"mapping": "mapped",
"inode_size": 50000,
"offset": 50000,
"length": 37,
"expected_errno": 0,
"expected_map_calls": 0,
"expected_final_offset": 50000,
"expected_resid": 37,
"expected_physical_offsets": [],
"expected_physical_lengths": []
}
]
}