Files
erofs-freebsd-out-tree/tests/pre15/fixtures/B22-zmap-arithmetic.json
T
2026-08-18 09:20:44 +02:00

321 lines
7.9 KiB
JSON

{
"batch": "B22",
"candidates": [
"P15-047",
"P15-059",
"P15-071",
"P15-079",
"P15-084"
],
"cases": [
{
"base": 4294967295,
"expected": 4294967296,
"mutated_fields": [],
"name": "compact-pblk-crosses-u32",
"nblk": 1,
"operation": "compact_pblk",
"status": "PASS",
"target_marker": "TC170:compact-pblk-32bit-crossing"
},
{
"base": 4294967295,
"expected": 4294967310,
"mutated_fields": [],
"name": "compact-pblk-widened-run",
"nblk": 15,
"operation": "compact_pblk",
"status": "PASS",
"target_marker": "TC170:compact-pblk-32bit-crossing"
},
{
"expected": 4168,
"inode_isize": 64,
"inode_off": 4096,
"mutated_fields": [],
"name": "index-base-aligned",
"operation": "index_base",
"status": "PASS",
"target_marker": "TC170:index-position"
},
{
"expected": 4144,
"inode_isize": 32,
"inode_off": 4097,
"mutated_fields": [],
"name": "index-base-roundup",
"operation": "index_base",
"status": "PASS",
"target_marker": "TC170:index-position",
"xattr_isize": 4
},
{
"inode_isize": 32,
"inode_off": 18446744073709551584,
"mutated_fields": [
"inode_off"
],
"name": "index-base-add-overflow",
"operation": "index_base",
"status": "EINTEGRITY",
"target_marker": "TC170:index-position"
},
{
"inode_isize": 0,
"inode_off": 18446744073709551609,
"mutated_fields": [
"inode_off"
],
"name": "index-base-roundup-overflow",
"operation": "index_base",
"status": "EINTEGRITY",
"target_marker": "TC170:index-position"
},
{
"count": 5,
"expected": 4136,
"mutated_fields": [],
"name": "index-advance-normal",
"operation": "index_advance",
"position": 4096,
"status": "PASS",
"target_marker": "TC170:index-position",
"unit": 8
},
{
"count": 1,
"expected": 18446744073709551615,
"mutated_fields": [],
"name": "index-advance-last-byte",
"operation": "index_advance",
"position": 18446744073709551608,
"status": "PASS",
"target_marker": "TC170:index-position",
"unit": 7
},
{
"count": 1,
"mutated_fields": [
"unit"
],
"name": "index-advance-add-overflow",
"operation": "index_advance",
"position": 18446744073709551608,
"status": "EINTEGRITY",
"target_marker": "TC170:index-position",
"unit": 8
},
{
"count": 2305843009213693952,
"mutated_fields": [
"count"
],
"name": "index-advance-multiply-overflow",
"operation": "index_advance",
"position": 0,
"status": "EINTEGRITY",
"target_marker": "TC170:index-position",
"unit": 8
},
{
"expected": 3,
"lclusterbits": 12,
"mutated_fields": [],
"name": "lcluster-count-roundup",
"operation": "lcluster_count",
"size": 8193,
"status": "PASS",
"target_marker": "TC170:delta-lcn"
},
{
"expected": 4503599627370496,
"lclusterbits": 12,
"mutated_fields": [],
"name": "lcluster-count-u64-max",
"operation": "lcluster_count",
"size": 18446744073709551615,
"status": "PASS",
"target_marker": "TC170:delta-lcn"
},
{
"lclusterbits": 64,
"mutated_fields": [
"lclusterbits"
],
"name": "lcluster-count-invalid-shift",
"operation": "lcluster_count",
"size": 4096,
"status": "EINTEGRITY",
"target_marker": "TC170:delta-lcn"
},
{
"clusterofs": 4095,
"expected": 18446744073709551615,
"lclusterbits": 12,
"lcn": 4503599627370495,
"mutated_fields": [],
"name": "lcluster-last-byte",
"operation": "lcluster_pos",
"status": "PASS",
"target_marker": "TC170:delta-lcn"
},
{
"clusterofs": 0,
"lclusterbits": 12,
"lcn": 4503599627370496,
"mutated_fields": [
"lcn"
],
"name": "lcluster-shift-overflow",
"operation": "lcluster_pos",
"status": "EINTEGRITY",
"target_marker": "TC170:delta-lcn"
},
{
"clusterofs": 4096,
"lclusterbits": 12,
"lcn": 4503599627370495,
"mutated_fields": [
"clusterofs"
],
"name": "lcluster-add-overflow",
"operation": "lcluster_pos",
"status": "EINTEGRITY",
"target_marker": "TC170:delta-lcn"
},
{
"delta": 7,
"expected": 18446744073709551615,
"lcn": 18446744073709551608,
"mutated_fields": [],
"name": "lcn-delta-last-value",
"operation": "lcn_advance",
"status": "PASS",
"target_marker": "TC170:delta-lcn"
},
{
"delta": 1,
"lcn": 18446744073709551615,
"mutated_fields": [
"delta"
],
"name": "lcn-delta-overflow",
"operation": "lcn_advance",
"status": "EINTEGRITY",
"target_marker": "TC170:delta-lcn"
},
{
"block_size": 4096,
"mutated_fields": [],
"name": "physical-last-48bit-block",
"operation": "physical_end",
"pa": 1152921504606842880,
"plen": 4096,
"status": "PASS",
"target_marker": "TC170:physical-end-48bit"
},
{
"block_size": 4096,
"mutated_fields": [
"pa"
],
"name": "physical-one-byte-beyond-48bit",
"operation": "physical_end",
"pa": 1152921504606842881,
"plen": 4096,
"status": "EINTEGRITY",
"target_marker": "TC170:physical-end-48bit"
},
{
"block_size": 4096,
"mutated_fields": [
"plen"
],
"name": "physical-u64-add-overflow",
"operation": "physical_end",
"pa": 18446744073709550592,
"plen": 1024,
"status": "EINTEGRITY",
"target_marker": "TC170:physical-end-48bit"
},
{
"block_size": 65536,
"mutated_fields": [],
"name": "physical-64k-representable-end",
"operation": "physical_end",
"pa": 18446744073709547520,
"plen": 4095,
"status": "PASS",
"target_marker": "TC170:physical-end-48bit"
},
{
"expected": 1,
"la": 4096,
"mutated_fields": [],
"name": "post-eof-at-eof",
"operation": "post_eof",
"size": 4096,
"status": "PASS",
"target_marker": "TC170:post-eof"
},
{
"expected": 4097,
"la": 8192,
"mutated_fields": [],
"name": "post-eof-bounded",
"operation": "post_eof",
"size": 4096,
"status": "PASS",
"target_marker": "TC170:post-eof"
},
{
"expected": 18446744073709551615,
"la": 18446744073709551615,
"mutated_fields": [],
"name": "post-eof-last-offset",
"operation": "post_eof",
"size": 1,
"status": "PASS",
"target_marker": "TC170:post-eof"
},
{
"expected": 18446744073709551615,
"la": 18446744073709551615,
"mutated_fields": [],
"name": "post-eof-saturates-empty-inode",
"operation": "post_eof",
"size": 0,
"status": "PASS",
"target_marker": "TC170:post-eof"
},
{
"expected": 18446744073709551615,
"high": 4294967295,
"low": 4294967295,
"mutated_fields": [],
"name": "fragment-offset-max-representable",
"operation": "fragment_offset",
"status": "PASS",
"target_marker": "TC170:fragment-high-bits"
},
{
"high": 4294967296,
"low": 4294967295,
"mutated_fields": [
"high"
],
"name": "fragment-offset-high-unrepresentable",
"operation": "fragment_offset",
"status": "EINTEGRITY",
"target_marker": "TC170:fragment-high-bits"
}
],
"errno": {
"corruption": 97,
"provider_io": "unchanged",
"sign": "positive"
},
"schema": 1,
"test": "TC170-zmap-arithmetic"
}