Skip to content

btrfs-progs: add duplicate filename check #1022

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

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

Conversation

maharmstone
Copy link
Contributor

If when doing btrfs check we encounter a DIR_ITEM slot with multiple entries due to a hash collision, loop through them to make sure that they are all distinct names.

@maharmstone maharmstone force-pushed the dupe-filename-check branch 2 times, most recently from 261d26d to ac78d9d Compare August 22, 2025 12:57
If when doing btrfs check we encounter a DIR_ITEM slot with multiple
entries due to a hash collision, loop through them to make sure that
they are all distinct names.

Signed-off-by: Mark Harmstone <mark@harmstone.com>
@maharmstone
Copy link
Contributor Author

I've added a lowmem version to make the test pass.

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