btrfs-progs/tests/fsck-tests
Qu Wenruo 2437a88079 btrfs-progs: tests/fsck: Add test image for free space cache mode repair
The image has one free space cache inode with invalid mode (0).
        item 9 key (256 INODE_ITEM 0) itemoff 13702 itemsize 160
                generation 30 transid 30 size 65536 nbytes 1507328
                block group 0 mode 0 links 1 uid 0 gid 0 rdev 0
                sequence 23 flags 0x1b(NODATASUM|NODATACOW|NOCOMPRESS|PREALLOC)
                atime 0.0 (1970-01-01 08:00:00)
                ctime 1553491158.189771625 (2019-03-25 13:19:18)
                mtime 0.0 (1970-01-01 08:00:00)
                otime 0.0 (1970-01-01 08:00:00)

Both lowmem and original mode should be able to detect and fix it.

The extracted test image is pretty big (1G extracted), as kernel won't
cache small chunks.
Even with SSD, such test may still take some seconds just extracting the
image.

Signed-off-by: Qu Wenruo <wqu@suse.com>
2019-04-16 09:04:25 +08:00
..
001-bad-file-extent-bytenr btrfs-progs: fsck-test: enable lowmem repair for case 001 2019-04-16 09:04:25 +08:00
002-bad-transid btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
003-shift-offsets btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
004-no-dir-index btrfs-progs: tests: Allow check test to repair in lowmem mode for certain errors 2017-10-16 20:33:00 +02:00
005-bad-item-offset btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
006-bad-root-items btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
007-bad-offset-snapshots btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
008-bad-dir-index-name btrfs-progs: Move btrfs-image dump to corresponding dir 2015-01-14 18:34:18 +01:00
009-no-dir-item-or-index btrfs-progs: tests: Allow check test to repair in lowmem mode for certain errors 2017-10-16 20:33:00 +02:00
010-no-rootdir-inode-item btrfs-progs: tests: Allow check test to repair in lowmem mode for certain errors 2017-10-16 20:33:00 +02:00
011-no-inode-item btrfs-progs: tests: Allow check test to repair in lowmem mode for certain errors 2017-10-16 20:33:00 +02:00
012-leaf-corruption btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
013-extent-tree-rebuild btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
014-no-extent-info btrfs-progs: tests: add image with no extent with normal device size 2018-06-07 16:37:32 +02:00
016-wrong-inode-nbytes btrfs-progs: tests: Allow check test to repair in lowmem mode for certain errors 2017-10-16 20:33:00 +02:00
017-missing-all-file-extent btrfs-progs: tests: Allow check test to repair in lowmem mode for certain errors 2017-10-16 20:33:00 +02:00
018-leaf-crossing-stripes btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
019-non-skinny-false-alert btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
020-extent-ref-cases btrfs-progs: fsck-tests: Move reloc tree images to 020-extent-ref-cases 2018-12-05 15:46:28 +01:00
021-partially-dropped-snapshot-case btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
022-qgroup-rescan-halfway btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
023-qgroup-stack-overflow btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
024-clear-space-cache btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
025-file-extents btrfs-progs: tests: fsck/025, fix typo in helpre name 2018-11-26 17:54:19 +01:00
026-bad-dir-item-name btrfs-progs: tests: check: Make 026-bad-dir-item-name verify if btrfs-check can also repair 2019-01-15 18:42:13 +01:00
027-bad-extent-inline-ref-type btrfs-progs: fsck-tests: 027/bad_extent_inline_ref_type 2017-11-14 15:59:00 +01:00
028-unaligned-super-dev-sizes btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
029-valid-orphan-item btrfs-progs: tests: Add test case with valid orphan inode 2018-03-30 22:15:54 +02:00
030-reflinked-prealloc-extents Btrfs-progs: add fsck test for filesystem with shared prealloc extents 2018-03-30 22:15:54 +02:00
031-metadatadump-check-data-csum btrfs-progs: tests: fix typos in test comments 2018-11-26 17:53:43 +01:00
032-corrupted-qgroup btrfs-progs: tests: Add test case to ensure btrfs check returns error for corrupted qgroups 2018-06-07 16:37:33 +02:00
033-lowmem-collission-dir-items btrfs-progs: tests: Add test for collision DIR_ITEM handling 2018-06-07 16:37:33 +02:00
034-bad-inode-flags btrfs-progs: fsck-tests: add test case to check symlinks with bad flags 2018-06-07 16:37:38 +02:00
035-inline-bad-ram-bytes btrfs-progs: fsck-tests: Add test case for corrupted inline ram_bytes 2018-08-06 15:01:16 +02:00
036-bad-dev-extents btrfs-progs: tests: Add test image for dev extents beyond device boundary 2019-01-15 18:42:13 +01:00
036-rescan-not-kicked-in btrfs-progs: tests: fix typos in test comments 2018-11-26 17:53:43 +01:00
037-freespacetree-repair btrfs-progs: tests: speed up fsck/037 free space tree test 2019-01-15 18:42:13 +01:00
038-bad-free-space-cache-inode-mode btrfs-progs: tests/fsck: Add test image for free space cache mode repair 2019-04-16 09:04:25 +08:00
038-missing-one-file-extent btrfs-progs: tests: add case for inode lose one file extent 2019-04-16 09:04:25 +08:00