Skip to content

erofs: Fix proptest check for compatibility with whiteouts#332

Open
cgwalters wants to merge 1 commit into
composefs:mainfrom
cgwalters:debug-ci-331
Open

erofs: Fix proptest check for compatibility with whiteouts#332
cgwalters wants to merge 1 commit into
composefs:mainfrom
cgwalters:debug-ci-331

Conversation

@cgwalters

Copy link
Copy Markdown
Collaborator

test_v1_binary_identical_to_c_mkcomposefs hardcoded FormatVersion::V0 when calling the Rust writer, but C mkcomposefs auto-bumps from version 0 to 1 when it encounters a whiteout (chardev rdev=0) in the input tree. When the random generator produced a CharacterDevice(0), the composefs_version header byte differed, causing a spurious failure.

The companion test test_v1_binary_identical_unusual_content already handled this correctly. Extract the shared comparison logic into assert_binary_identical_to_c() so both tests use it.

Assisted-by: opencode (claude-opus-4-6)

giuseppe
giuseppe previously approved these changes Jun 26, 2026

@giuseppe giuseppe left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

test_v1_binary_identical_to_c_mkcomposefs hardcoded FormatVersion::V0
when calling the Rust writer, but C mkcomposefs auto-bumps from version
0 to 1 when it encounters a whiteout (chardev rdev=0) in the input
tree. When the random generator produced a CharacterDevice(0), the
composefs_version header byte differed, causing a spurious failure.

The companion test test_v1_binary_identical_unusual_content already
handled this correctly. Extract the shared comparison logic into
assert_binary_identical_to_c() so both tests use it.

Assisted-by: opencode (claude-opus-4-6)
Signed-off-by: Colin Walters <walters@verbum.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants