From 58dfcf8e5f1b403b58313db6ba2b2f558208a494 Mon Sep 17 00:00:00 2001 From: Mark Harmstone Date: Thu, 24 Oct 2024 17:40:51 +0100 Subject: [PATCH] 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 [ Move the image to 065-valid-log tree ] Signed-off-by: Qu Wenruo --- .../065-valid-log-tree/already-present.img.xz | Bin 0 -> 1312 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/fsck-tests/065-valid-log-tree/already-present.img.xz diff --git a/tests/fsck-tests/065-valid-log-tree/already-present.img.xz b/tests/fsck-tests/065-valid-log-tree/already-present.img.xz new file mode 100644 index 0000000000000000000000000000000000000000..e03ad53088334a9ba3297a07757f14e12034a4b3 GIT binary patch literal 1312 zcmV+*1>gGpH+ooF000E$*0e?hz}^Xfs0$$h761SM0001!2RGW{)Bgn4T>wRyj;C3^ zv%$$4d1wo3jjaF1$8Jv*pMMm%#Ch6IM%}7&=@^TvKIIdYjZ@t7T($M|v7Nrg!uPlA zY587IVYDYwYks}&*kO9WX4E$tf@`p@7riZY|5vHpGjZZ-8O|;e@xwm%T$Ei=y}{%- zMnX^i5mdNaL5vl@klOfXf@76TPcoBbqvfxR3%Db*Isf=YU6H8*wT?TUZEVNTPruL; zptToMc&g9%wW(xF6zfhAcom~NGz_nJi%>k|^U7xm4oGMGPx4rENy$K_nG%_59;uNh&JCGAq%|sm%o>C==H;Po$ zPWyBZZU^RXOAPm%0+BM9+CW5L3%Fdc6Y>uo8HxQ1v>qT%W3Wa}1-w}AnLGE>PrV)c zr^eMh+0+ND55}n6YFXN$6b76}rl7eciEOicumz3f;I;qqg5!<8IrtJEQ+vghXZ#a6 zsDh@6hVRSeAyy72k5`1!Tqw=_UtPk{aZ0RAzP_;fVr)n^`L9;8oRU!raHV->Cq8|{<;b8C_F^3SShrB741KsSw&4D}NBJH@ovD}?g57sV#^zA9A0(L@hS zKuQ89nM=JHOn7HbqEh%RacyqaF0po(n=lm#tmHoss0OA_WiyxWfEl1Tf_slF>F3~VOAomjYvo1u zji*PGQj|@{M&FtO`VVRUQk%4oX_X(+JQv|SZu+Fi5@y(zA7@nFFkza!L>k1P$eWXV zqGzS28-UJUp~8|b7$Rt*0^w#v;#5we^=m_(I}lqtFp3@8Q5b}om&rgY(0l76P&#pA zbjWj4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