From 01f868b5a99b412212ede924a81aa15e6d408381 Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Fri, 3 Oct 2014 10:54:26 -0400 Subject: btrfs-progs: make fsck deal with bogus items We can deal with corrupt items by deleting them in a few cases. Fsck can easily recover from a missing extent item or a dir index item. So if we notice a item is completely bogus and it is of a key that we know we can repair then just delete it and carry on. Thanks, Signed-off-by: Josef Bacik Signed-off-by: David Sterba --- tests/fsck-tests/005-bad-item-offset.img | Bin 0 -> 398336 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/fsck-tests/005-bad-item-offset.img (limited to 'tests/fsck-tests') diff --git a/tests/fsck-tests/005-bad-item-offset.img b/tests/fsck-tests/005-bad-item-offset.img new file mode 100644 index 00000000..e11e1e32 Binary files /dev/null and b/tests/fsck-tests/005-bad-item-offset.img differ -- cgit v1.2.3