diff mbox series

[3/3] btrfs-progs: tests/fsck: add test image for inode transid repair

Message ID 20200826005233.90063-4-wqu@suse.com
State New, archived
Headers show
Series None | expand

Commit Message

Qu Wenruo Aug. 26, 2020, 12:52 a.m. UTC
The image would contain an inode with invalid transid:

        item 4 key (257 INODE_ITEM 0) itemoff 15881 itemsize 160
                generation 6 transid 134217734 size 131072 nbytes 131072
                block group 0 mode 100600 links 1 uid 0 gid 0 rdev 0

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 .../bad_inode_transid.img.xz                     | Bin 0 -> 1888 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 tests/fsck-tests/043-bad-inode-generation/bad_inode_transid.img.xz

GIT binary patch
literal 1888
zcmV-m2cP);H+ooF000E$*0e?f03iV!0000G&sfah3;zcmT>wRyj;C3^v%$$4d1r37
zhA1?^{scbOsZ;MF^5mxtBL2N$-@q5WxC(D}ZY2QJ%)a)iD&W(LL@wNHsFJI)zHR?d
zR-W|7ohS;3W5O2-TV^#WHa1s{Vmf<A0>Jqd&0^*_Ac2n!&6<Y3<6FGso8*?I$DM|@
z;GzAO)h4RUO`32oWb9-g^ZR!MEb2>cf^!u$dx~pe63pI%HGppia4?y8&zo0A@Uk14
zMqNyQS5rWBKwSJ5SMMACjibQ?pE5d=Y=D~Nls|)V(XBDlmWm#$T;$(YX&H=afGR!S
zM5$va+dALXXaz@t9NU^(>L|SJz(Aq|O~W`%I`-Gm!onYhn9GX9jJY97*_(}beGwhu
zfGRBJSyz)OrRG)XGitx+Y}gsR5_<+vH|y~tbJ^Zcnd|_V(}-*Y$n(Q5Vd$*3lP4q{
z>wlX4M_org;w^kOPzF_+ocDD@+xBbGc+0zM9Fb!hSGibMhdNaf#hkWz`sP7Z?ErrF
zOGglT*-A<GlTGPiCHyvZ+Z4(@Pn@y-4$L%=KBUdu(omQil$LAPx`wE}^d`>qS1;gm
zKq+Mc=b*CGL7mngJPk9otkD$U9Tn(`%4H1`dPPmM+ydN*E^dbe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e(mM(`t%sT#{r`wT!ild*wpl7?@Tot_hCKD(`COD7dd=-W;J#i
z{d|gs)B=(I0G<S<zbOJ;46CI1(37*-irOm(SY9LZR6w$1Z<Sz!Fg;b>J3+b|{Slxr
zGVA18mA!Ye2e(f{qR4;i+z1Bn#?;-FoQpAJ;#h1Ni?)l6(FD>}T))`15e5jybhV(C
zac3yz?^mS=J^1UoaZqL=#sdr=QtZj+w;}m5A8%SaK*vTb)&^D>LFmG|zz9z9LRrp?
zKj;CBS39zy^s7T_8gW~(&an^&BIHnT5hnD5Kv*p;v-G@zVl$kkK>0UR9V^Z&Ik}{Q
zwMQ1gVC1O8Ig&Fzv(lR0O3w>G;h5^gnQ(E?^pg0pZ_bkFtlSu=bfR_CU%u`liY)>_
zxsMzhZL_)w<^sG(mT`v5gKj3>>=5#B1y=*oChhX{S_63`38Y~#pb99#t_=DtOmH2$
zpRisx%LE~PZ6Nm+IQH0cl9CXCpV&m|+=l69j&}os0p9FEcy2k8UntiH-HbW32-qS)
z2+cWaSl$O92=1sRRvgy$nXzPc)(9LN^}#2VZ-DYM0AM9nr^p~&J2gI*aPKyK_c_~S
zFvP=DMW%{s>OfgbXWM=FTfE}CQ6zdUF{_jQ0?jC;Y5#RX+R2L-cWdq;by7v6wqtC*
zO}Y|bzMCxdvLWHfZ11IfINpi~qnGJ>F)SZ$XTuuPfS^U-5ljF80001eea??kjED9B
a0lE%=7ytlV9#}ZB#Ao{g000001X)_Aj-k&0

literal 0
HcmV?d00001

Comments

Josef Bacik Aug. 26, 2020, 2:35 p.m. UTC | #1
On 8/25/20 8:52 PM, Qu Wenruo wrote:
> The image would contain an inode with invalid transid:
> 
>          item 4 key (257 INODE_ITEM 0) itemoff 15881 itemsize 160
>                  generation 6 transid 134217734 size 131072 nbytes 131072
>                  block group 0 mode 100600 links 1 uid 0 gid 0 rdev 0
> 
> Signed-off-by: Qu Wenruo <wqu@suse.com>

Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef
diff mbox series

Patch

diff --git a/tests/fsck-tests/043-bad-inode-generation/bad_inode_transid.img.xz b/tests/fsck-tests/043-bad-inode-generation/bad_inode_transid.img.xz
new file mode 100644
index 0000000000000000000000000000000000000000..91ee6947fd71b52d5426b7adeb20cb1f6fd2866b