diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-18 00:22:09 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-18 00:49:48 -0400 |
commit | bc6d2d10418e1bfdb95b16f5dd4cca42d5dec766 (patch) | |
tree | 4a98f0299a6443590ad2ff8460898603d786d389 /scripts/gdb/linux/kasan.py | |
parent | dc96656b20eb6f7dea0ccd220541b4af49cf5789 (diff) |
bcachefs: fsck: Improve hash_check_key()
hash_check_key() checks and repairs the hash table btrees: dirents and
xattrs are open addressing hash tables.
We recently had a corruption reported where the hash type on an inode
somehow got flipped, which made the existing dirents invisible and
allowed new ones to be created with the same name.
Now, hash_check_key() can repair duplicates: it will delete one of them,
if it has an xattr or dangling dirent, but if it has two valid dirents
one of them gets renamed.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'scripts/gdb/linux/kasan.py')
0 files changed, 0 insertions, 0 deletions