Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to Update Bitflags #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reece394
Copy link

@reece394 reece394 commented Jan 11, 2025

This bumps bitflags up to the latest release 2.7. In order to do this I had to add derive lines to maintain compatibility with the older version. I also had to use fmt::Display to change the output back to the way it was before the update as the latest version of bitflags outputs like this FileAttributeFlags(FILE_ATTRIBUTE_READONLY) rather than FILE_ATTRIBUTE_READONLY.

One potential issue I noticed is when I used mft_dump json with mft_dump --output-format json --output test1.json mft.bin
and compared the outputs of the older version is that it outputs IndexRootFlags with both SMALL_INDEX and LARGE_INDEX rather than just LARGE_INDEX for the older version. This might be due to the way the bits are handled now but the rest of the outputs seem to match fine and pass the tests.

The default behaviour is to not output any info for 0x00 flags anymore in bitflags hence the if statement in IndexRootFlags FYI

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.

1 participant