mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-15 10:55:51 +00:00
945cfa1ae3
My tool ntfs2btrfs has been creating btrfs volumes in a way that the kernel doesn't like, but which isn't picked up by btrfs check - see maharmstone/ntfs2btrfs#23 for the details, including a backtrace. This patch adds a check for when a csum item contains too many entries - effectively it ensures that there's always at least sizeof(struct btrfs_item) bytes free in the tree, otherwise btrfs_del_csums can throw an error. max_entries is the value of the __MAX_CSUM_ITEMS macro in fs/btrfs/file-item.c. Pull-request: #401 Signed-off-by: Mark Harmstone <mark@harmstone.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
btrfsck.h | ||
common.h | ||
main.c | ||
mode-common.c | ||
mode-common.h | ||
mode-lowmem.c | ||
mode-lowmem.h | ||
mode-original.h | ||
qgroup-verify.c | ||
qgroup-verify.h |