btrfs-progs/tests/fsck-tests
Qu Wenruo d3f7315b3c btrfs-progs: tests: check: detect bad extent item generation
The new image has a bad data extent item generation:

        item 0 key (13631488 EXTENT_ITEM 4096) itemoff 16230 itemsize 53
                refs 1 gen 16384 flags DATA
                extent data backref root FS_TREE objectid 257 offset 0 count 1

Just like what older `btrfs check --init-extent-tree` could cause.

Reviewed-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-01-09 14:27:10 +01: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: tests: switch messages to _log 2019-07-26 17:46:42 +02: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: tests: switch messages to _log 2019-07-26 17:46:42 +02:00
013-extent-tree-rebuild btrfs-progs: tests: fsck/013: use correct path for btrfs-corrupt-block 2020-01-09 14:27:09 +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: switch to mkfs helper 2019-06-05 20:27:32 +02:00
025-file-extents btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02: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: switch to mkfs helper 2019-06-05 20:27:32 +02:00
032-corrupted-qgroup btrfs-progs: check: warn users about the possible dangers of --repair 2019-11-22 19:07:20 +01:00
033-lowmem-collission-dir-items btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +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: switch messages to _log 2019-07-26 17:46:42 +02: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
039-bad-inode-mode btrfs-progs: tests: Add new images for inode mode repair functionality 2019-11-18 19:21:07 +01:00
040-compressed-nodatasum btrfs-progs: tests: detecting compressed extent without csum 2019-05-17 12:32:38 +02:00
041-invalid-root-generation btrfs-progs: fsck-tests: Add test case for invalid root generation 2019-09-04 16:06:55 +02:00
042-half-dropped-inode btrfs-progs: fsck-tests: Add test image for valid half-dropped orphan inode 2019-09-04 16:08:58 +02:00
043-bad-inode-generation btrfs-progs: test: tests: Add test image for invalid inode generation repair 2019-11-18 19:21:07 +01:00
044-invalid-extent-item-generation btrfs-progs: tests: check: detect bad extent item generation 2020-01-09 14:27:10 +01:00