test(fuse): update INIT_EXT flag name expectation - #1450
Merged
Conversation
ligeng8848
marked this pull request as ready for review
July 31, 2026 10:00
szbr9486
reviewed
Jul 31, 2026
szbr9486
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the test update against the current FUSE INIT capability map and the unknown-bit fallback. I found no actionable code issues in this change.
lzjqsdd
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update the FUSE INIT capability-name test to reflect that bit 30 is now registered as
FUSE_INIT_EXT, while preserving coverage for the hexadecimal fallback of unmapped bits.Issue Describe / Design
No related issue.
Root cause:
The test still treated bit 30 (
0x40000000) as unknown, but the production capability-name map now registers that bit asINIT_EXT.Reproduction:
cargo test -p curvine-fuse fuse_init_flag_names_maps_known_and_unknown --libFix approach:
Assert that
FUSE_INIT_EXTrenders asINIT_EXT, and use bit 31 to verify the hexadecimal fallback for an unmapped bit.Changes
curvine-fuse/src/fs/curvine_file_system.rsTest verified
cargo test -p curvine-fuse fuse_init_flag_names_maps_known_and_unknown --libcargo test -p curvine-fuse init_ --libcargo fmt --package curvine-fuse -- --checkcargo test -p curvine-fuse --libmake formatDependencies