From e56cdab5f1cc71d939e16881a477a6d41ec6ad5d Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Tue, 24 Sep 2019 16:11:20 +0800 Subject: [PATCH] btrfs-progs: test: tests: Add test image for invalid inode generation repair The image contains one inode item with invalid generation. The image can be crafted by "btrfs-corrupt-block -i 257 -f generation". It should emulate the bad inode generation caused by older kernel around 2014. The image is repairable for both original and lowmem mode. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- .../043-bad-inode-generation/.lowmem_repairable | 0 .../bad_inode_geneartion.img.xz | Bin 0 -> 2012 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/fsck-tests/043-bad-inode-generation/.lowmem_repairable create mode 100644 tests/fsck-tests/043-bad-inode-generation/bad_inode_geneartion.img.xz diff --git a/tests/fsck-tests/043-bad-inode-generation/.lowmem_repairable b/tests/fsck-tests/043-bad-inode-generation/.lowmem_repairable new file mode 100644 index 00000000..e69de29b diff --git a/tests/fsck-tests/043-bad-inode-generation/bad_inode_geneartion.img.xz b/tests/fsck-tests/043-bad-inode-generation/bad_inode_geneartion.img.xz new file mode 100644 index 0000000000000000000000000000000000000000..d7302fcbabc653885ae1fac438183d7a9908a2f1 GIT binary patch literal 2012 zcmV<22P63XH+ooF000E$*0e?f03iV!0000G&sfah3;ze3T>wRyj;C3^v%$$4d1r37 zhA1?^g@qU6X{4JoZYUD&m)J~cEzT$F8&JddXW->df79?XOzszXC^i=3jv5zdJ#gxs z9sQ15EP307fR>-UpptOL6$V1qyGH7H=dX29pcbb>H?Kn*GkWCd+> z4gz!Y>ckaFgrgJeuG6M51wqhmn{kbaDVJg3Ld?lgrBdfj3zsD?PK#AyrUSv9Tph@s zlWPn@3zTdm{~HMt@#SSDZQo9pza_F;Uft;~oZgvZAnors__Ju}&Qp3w_XQ)tsS2T| zq$FIL*2A$z^pWDZ*1|!M(O+5AX(EZJ$>dBH`%1hzGX?o=*9kma$y@8m;CS@I{;nWI z*j}3J7}iP+f7~@z9j`a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