btrfs-progs/tests/fsck-tests
Mark Harmstone 58dfcf8e5f btrfs-progs: add an image to fsck-tests/065-valid-log-tree where csum already present
Adds a test that btrfs check doesn't report an error because of a
missing csum entry in the log tree, if that csum is already in the
normal csum tree. See commit 6c7d2a32.

The checksum tree in already-present.img.xz:

checksum tree key (CSUM_TREE ROOT_ITEM 0)
leaf 5390336 items 1 free space 16254 generation 5 owner CSUM_TREE
leaf 5390336 flags 0x1(WRITTEN) backref revision 1
checksum stored ff20c282
checksum calced ff20c282
fs uuid 70d417f0-0173-49ca-bdf1-b789a798974d
chunk uuid b7ec3806-ea09-4f18-a5ef-126a2d79105e
        item 0 key (EXTENT_CSUM EXTENT_CSUM 13631488) itemoff 16279 itemsize 4
                range start 13631488 end 13635584 length 4096

The log tree in already-present.img.xz:

log tree key (TREE_LOG ROOT_ITEM 5)
leaf 5373952 items 3 free space 15981 generation 7 owner TREE_LOG
leaf 5373952 flags 0x1(WRITTEN) backref revision 1
checksum stored 63afa0e5
checksum calced 63afa0e5
fs uuid 70d417f0-0173-49ca-bdf1-b789a798974d
chunk uuid b7ec3806-ea09-4f18-a5ef-126a2d79105e
        item 0 key (257 INODE_ITEM 0) itemoff 16123 itemsize 160
                generation 7 transid 7 size 4096 nbytes 0
                block group 0 mode 100644 links 1 uid 0 gid 0 rdev 0
                sequence 1 flags 0x0(none)
                atime 1721050040.375996658 (2024-07-15 14:27:20)
                ctime 1721050040.375996658 (2024-07-15 14:27:20)
                mtime 1721050040.375996658 (2024-07-15 14:27:20)
                otime 0.2820488960 (1970-01-01 01:00:00)
        item 1 key (257 INODE_REF 256) itemoff 16109 itemsize 14
                index 2 namelen 4 name: file
        item 2 key (257 EXTENT_DATA 0) itemoff 16056 itemsize 53
                generation 7 type 1 (regular)
                extent data disk byte 13631488 nr 4096
                extent data offset 0 nr 4096 ram 4096
                extent compression 0 (none)

Signed-off-by: Mark Harmstone <maharmstone@fb.com>
[ Move the image to 065-valid-log tree ]
Signed-off-by: Qu Wenruo <wqu@suse.com>
2024-10-29 10:35:21 +10:30
..
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: add missing protection against running out of test suite 2024-06-03 22:37:53 +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: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
013-extent-tree-rebuild btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02: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: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
019-non-skinny-false-alert btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
020-extent-ref-cases btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
021-partially-dropped-snapshot-case btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
022-qgroup-rescan-halfway btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
023-qgroup-stack-overflow btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
024-clear-space-cache btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
025-file-extents btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +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: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
029-valid-orphan-item btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
030-reflinked-prealloc-extents btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
031-metadatadump-check-data-csum btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
032-corrupted-qgroup btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
033-lowmem-collission-dir-items btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
034-bad-inode-flags btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
035-inline-bad-ram-bytes btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
036-bad-dev-extents btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
036-rescan-not-kicked-in btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
037-freespacetree-repair btrfs-progs: tests: fix cleanup step in check/037 2024-06-24 19:18:16 +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: add missing protection against running out of test suite 2024-06-03 22:37:53 +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: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
043-bad-inode-generation btrfs-progs: tests: add test image to fsck/043 for inode transid repair 2020-08-31 17:09:55 +02:00
044-invalid-extent-item-generation btrfs-progs: tests: enhance invalid extent item generation test cases 2020-12-10 17:10:30 +01:00
045-overlap-csum-item btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
047-dev-bytes-used btrfs-progs: tests/fsck: add test case to make sure btrfs check can reset btrfs_dev_item::bytes_used 2021-06-19 22:07:49 +02:00
049-dir-hard-link btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
050-invalid-block-group-used btrfs-progs: tests: add image with a corrupt block group item 2021-08-25 15:38:54 +02:00
051-invalid-super-bytes-used btrfs-progs: tests: add image with an invalid super bytes_used 2021-08-25 15:43:13 +02:00
052-init-csum-tree btrfs-progs: tests: fix filename typo in fsck/052 compex -> complex 2024-07-30 19:53:33 +02:00
053-bad-metadata-level btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
054-orphan-directory btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
055-super-num-devs-mismatch btrfs-progs: tests: add test case for super num devs mismatch 2022-03-24 00:36:13 +01:00
056-raid56-false-alerts btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
057-seed-false-alerts btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
058-bad-free-space-tree-entry btrfs-progs: check: check for invalid free space tree entries 2022-08-16 15:18:12 +02:00
059-shrunk-device btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
060-degraded-check btrfs-progs: tests: update or fix shell script coding style 2024-06-24 19:18:08 +02:00
061-out-of-order-inline-backref btrfs-progs: tests: add missing protection against running out of test suite 2024-06-03 22:37:53 +02:00
063-log-missing-csum btrfs-progs: check: add rudimentary log checking 2024-09-17 14:33:22 +02:00
064-deprecated-inode-cache btrfs-progs: tests: add case to handle deprecated inode cache in check 2024-09-17 14:33:22 +02:00
065-valid-log-tree btrfs-progs: add an image to fsck-tests/065-valid-log-tree where csum already present 2024-10-29 10:35:21 +10:30