325 lines
9.2 KiB
JSON
325 lines
9.2 KiB
JSON
{
|
|
"schema": 1,
|
|
"batch": "B17",
|
|
"seed": {
|
|
"path": "B17-xattr-seed.erofs",
|
|
"sha256": "8137e7966a9dc5fba85dc63750d065bd54f6d08dc25b13f1e8c4f0deea934041",
|
|
"mkfs_version": "mkfs.erofs (erofs-utils) 1.8.6",
|
|
"uuid": "00000000-0000-0000-0000-000000000317"
|
|
},
|
|
"freebsd_errno": {
|
|
"EINTEGRITY": 97,
|
|
"ENOATTR": 87,
|
|
"EOPNOTSUPP": 45
|
|
},
|
|
"cases": [
|
|
{
|
|
"id": "valid-inline-binary",
|
|
"class": "legal",
|
|
"mutation": "none",
|
|
"operation": "get",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"name": "alpha",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_value_hex": "76616c75650062696e617279ff",
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-shared-header-entry",
|
|
"class": "legal",
|
|
"mutation": "none",
|
|
"operation": "get",
|
|
"target": "/shared-0.bin",
|
|
"namespace": "user",
|
|
"name": "shared",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_value_hex": "7368617265642d76616c7565",
|
|
"expected_shared_count": 1,
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-long-prefix",
|
|
"class": "legal",
|
|
"mutation": "none",
|
|
"operation": "get",
|
|
"target": "/prefix.bin",
|
|
"namespace": "user",
|
|
"name": "company.branch.leaf",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_value_hex": "7072656669782d76616c7565",
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-acl-empty-suffix",
|
|
"class": "legal",
|
|
"mutation": "acl-empty-suffix",
|
|
"operation": "acl",
|
|
"target": "/acl.bin",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_feature_filter": true,
|
|
"expected_filter_reserved": 0,
|
|
"expected_filter_usable": true,
|
|
"expected_acl_filter_negative": false,
|
|
"expected_acl": [[1, 6, 4294967295], [4, 0, 4294967295], [32, 0, 4294967295]],
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-filter-reserved-zero",
|
|
"class": "legal",
|
|
"mutation": "none",
|
|
"operation": "get",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"name": "alpha",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_feature_filter": true,
|
|
"expected_filter_reserved": 0,
|
|
"expected_filter_usable": true,
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-filter-reserved-one",
|
|
"class": "legal",
|
|
"mutation": "filter-reserved-one",
|
|
"operation": "get",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"name": "alpha",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_feature_filter": true,
|
|
"expected_filter_reserved": 1,
|
|
"expected_filter_usable": false,
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-filter-reserved-255",
|
|
"class": "legal",
|
|
"mutation": "filter-reserved-255",
|
|
"operation": "get",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"name": "alpha",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_feature_filter": true,
|
|
"expected_filter_reserved": 255,
|
|
"expected_filter_usable": false,
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-filter-feature-off",
|
|
"class": "legal",
|
|
"mutation": "filter-feature-off",
|
|
"operation": "get",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"name": "alpha",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_feature_filter": false,
|
|
"expected_filter_reserved": 0,
|
|
"expected_filter_usable": false,
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-filter-feature-off-reserved-one",
|
|
"class": "legal",
|
|
"mutation": "filter-feature-off-reserved-one",
|
|
"operation": "get",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"name": "alpha",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_feature_filter": false,
|
|
"expected_filter_reserved": 1,
|
|
"expected_filter_usable": false,
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "valid-unknown-filter-acl-present",
|
|
"class": "legal",
|
|
"mutation": "unknown-filter-acl-present",
|
|
"operation": "acl",
|
|
"target": "/acl.bin",
|
|
"expected_errno": 0,
|
|
"expected_reject": "accepted",
|
|
"expected_feature_filter": true,
|
|
"expected_filter_reserved": 1,
|
|
"expected_filter_usable": false,
|
|
"expected_acl_filter_negative": true,
|
|
"expected_acl": [[1, 6, 4294967295], [4, 0, 4294967295], [32, 0, 4294967295]],
|
|
"fsck_accept": true
|
|
},
|
|
{
|
|
"id": "invalid-inline-name-nul",
|
|
"class": "damaged",
|
|
"mutation": "inline-name-nul",
|
|
"operation": "list",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "inline.name-nul"
|
|
},
|
|
{
|
|
"id": "invalid-shared-name-nul",
|
|
"class": "damaged",
|
|
"mutation": "shared-name-nul",
|
|
"operation": "list",
|
|
"target": "/shared-0.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "shared.name-nul"
|
|
},
|
|
{
|
|
"id": "invalid-prefix-infix-nul",
|
|
"class": "damaged",
|
|
"mutation": "prefix-infix-nul",
|
|
"operation": "mount",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "prefix.infix-nul"
|
|
},
|
|
{
|
|
"id": "invalid-short-name-index",
|
|
"class": "damaged",
|
|
"mutation": "short-name-index",
|
|
"operation": "get",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"name": "alpha",
|
|
"expected_errno": 87,
|
|
"expected_errno_name": "ENOATTR",
|
|
"expected_reject": "name.short-index"
|
|
},
|
|
{
|
|
"id": "invalid-long-prefix-id",
|
|
"class": "damaged",
|
|
"mutation": "long-prefix-id",
|
|
"operation": "get",
|
|
"target": "/prefix.bin",
|
|
"namespace": "user",
|
|
"name": "company.branch.leaf",
|
|
"expected_errno": 87,
|
|
"expected_errno_name": "ENOATTR",
|
|
"expected_reject": "name.long-prefix-id"
|
|
},
|
|
{
|
|
"id": "invalid-prefix-base-index",
|
|
"class": "damaged",
|
|
"mutation": "prefix-base-index",
|
|
"operation": "get",
|
|
"target": "/prefix.bin",
|
|
"namespace": "user",
|
|
"name": "company.branch.leaf",
|
|
"expected_errno": 87,
|
|
"expected_errno_name": "ENOATTR",
|
|
"expected_reject": "name.prefix-base-index"
|
|
},
|
|
{
|
|
"id": "invalid-inline-value-size",
|
|
"class": "damaged",
|
|
"mutation": "inline-value-size",
|
|
"operation": "list",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "inline.value-bounds"
|
|
},
|
|
{
|
|
"id": "invalid-shared-value-size",
|
|
"class": "damaged",
|
|
"mutation": "shared-value-size",
|
|
"operation": "list",
|
|
"target": "/shared-0.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "shared.value-bounds"
|
|
},
|
|
{
|
|
"id": "invalid-shared-id-offset",
|
|
"class": "damaged",
|
|
"mutation": "shared-id-offset",
|
|
"operation": "list",
|
|
"target": "/shared-0.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "shared.offset-bounds"
|
|
},
|
|
{
|
|
"id": "invalid-header-shared-count",
|
|
"class": "damaged",
|
|
"mutation": "header-shared-count",
|
|
"operation": "list",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "ibody.shared-count"
|
|
},
|
|
{
|
|
"id": "invalid-header-only",
|
|
"class": "damaged",
|
|
"mutation": "header-only",
|
|
"operation": "list",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 45,
|
|
"expected_errno_name": "EOPNOTSUPP",
|
|
"expected_reject": "ibody.header-only"
|
|
},
|
|
{
|
|
"id": "invalid-ibody-bounds",
|
|
"class": "damaged",
|
|
"mutation": "ibody-bounds",
|
|
"operation": "list",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "ibody.bounds"
|
|
},
|
|
{
|
|
"id": "invalid-inline-entry-truncated",
|
|
"class": "damaged",
|
|
"mutation": "inline-entry-truncated",
|
|
"operation": "list",
|
|
"target": "/inline.bin",
|
|
"namespace": "user",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "inline.name-bounds"
|
|
},
|
|
{
|
|
"id": "invalid-prefix-record-truncated",
|
|
"class": "damaged",
|
|
"mutation": "prefix-record-truncated",
|
|
"operation": "mount",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "prefix.payload-bounds"
|
|
},
|
|
{
|
|
"id": "invalid-prefix-offset-bounds",
|
|
"class": "damaged",
|
|
"mutation": "prefix-offset-bounds",
|
|
"operation": "mount",
|
|
"expected_errno": 97,
|
|
"expected_errno_name": "EINTEGRITY",
|
|
"expected_reject": "prefix.header-bounds"
|
|
}
|
|
]
|
|
}
|