[PATCH] tests: extent pointing to non-existent block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andreas Dilger <andreas.dilger@xxxxxxxxx>

Signed-off-by: Girish Shilamkar <girish@xxxxxxxxxxxxx>
Signed-off-by: Andreas Dilger <andreas.dilger@xxxxxxxxx>
---
 tests/f_extents_bad_blk/expect.1 |  24 ++++++++++++++++++++++++
 tests/f_extents_bad_blk/expect.2 |   7 +++++++
 tests/f_extents_bad_blk/image.gz | Bin 0 -> 18650 bytes
 tests/f_extents_bad_blk/name     |   1 +
 4 files changed, 32 insertions(+)
 create mode 100644 tests/f_extents_bad_blk/expect.1
 create mode 100644 tests/f_extents_bad_blk/expect.2
 create mode 100644 tests/f_extents_bad_blk/image.gz
 create mode 100644 tests/f_extents_bad_blk/name

diff --git a/tests/f_extents_bad_blk/expect.1 b/tests/f_extents_bad_blk/expect.1
new file mode 100644
index 00000000..b398e1b7
--- /dev/null
+++ b/tests/f_extents_bad_blk/expect.1
@@ -0,0 +1,24 @@
+Pass 1: Checking inodes, blocks, and sizes
+Inode 12 has an invalid extent
+	(logical block 0, invalid physical block 65091, len 16)
+Clear? yes
+
+Inode 12, i_blocks is 3200, should be 3168.  Fix? yes
+
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+Block bitmap differences:  -(7747--7762)
+Fix? yes
+
+Free blocks count wrong for group #0 (6516, counted=6532).
+Fix? yes
+
+Free blocks count wrong (13908, counted=13924).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 12/4016 files (8.3% non-contiguous), 2108/16032 blocks
+Exit status is 1
diff --git a/tests/f_extents_bad_blk/expect.2 b/tests/f_extents_bad_blk/expect.2
new file mode 100644
index 00000000..f7d57b67
--- /dev/null
+++ b/tests/f_extents_bad_blk/expect.2
@@ -0,0 +1,7 @@
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+test_filesys: 12/4016 files (8.3% non-contiguous), 2108/16032 blocks
+Exit status is 0
diff --git a/tests/f_extents_bad_blk/image.gz b/tests/f_extents_bad_blk/image.gz
new file mode 100644
index 0000000000000000000000000000000000000000..03b9967cc58a6bb4c33c2accfff8807d91247bc7
GIT binary patch
literal 18650
zcmeI!Yfw{X8V7K<Y^6J_W;*SbmRmYyEg}LU3Pd1br&<I>R4zeoaYaOpK)D%{kYrmc
zu0>!$?j&TXgh(J{DFg_Z;FXI&A^{R4BvGKm5FkP>ha@CfcJ}M`OUDnL^_-dad^qnp
z@B93J^PDpWTKK^Sr}y?pzGsu0yKQ+o^I|g6+4jvHH&R{hh%Yl;=!K34&WVKEdlAyY
zgHff-ouZdZ&p+@j_KcgZy*OVeJmbnc^{lfZ{N}SiPQMzcE+jp$7kS-zSa94u{v^5Q
zZ^zGDTU-A1L*7~ttbg*)W4$p+%~FL;KUvKYa22z7D&8w7><`!a95N#>U5N^BS&Ev$
z<%Qek^k?XIN@+w1S?G+0O4g&>!sBZ*49BEeB2|L0Jj~S`o9N>^i7U|u)=eoUmXV6T
zpeq|o0xag&17?K$#X)P3NX{jkHxEf4)3?Jm6A2`yStGJRHhM=y&;-ktBqn8J;w+GB
zMfVY7(Iyv8>Xkhh`S(=-TV8%5!(xWO`;CSjZph@An!JX-^}NJ#lfB}yAZ9EttPQh(
zOKaQ3kyW5CwWV?nW#=u%C)WgjrR#*Lg3gf#*MExK!Ewkb%7sf4YgWgMK`e7YViD&{
zZzlJBhuH%?A;-C;dd;i7ZcRA!*l@G4o1sCZpL=a(n4sOh^W>)m9d`7ci1{XeiiNQJ
z$WgwJf9MK-Q9RNCP)!e2m_?_YMcM59B1W;2k0V(ubangl${T(ZxbQs_1*$S_=Ib8b
z$k40hHHWGS-_U>x=;v(gO)<QS7VF!8d=K%cP3F(ug)=64S_6REl{ZQ>F94A%)*CvG
zL-xVN%g?6BEx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kDkP4qL8
z>jYi_cjetQ*3o_hLASg)#sHeA_lU4y^C%HT*5vOd5Y-!J(I^IQw|X4H=&vO<7|-IK
zo-rqvYx4J)Wiod07@Gk!LYeR~Vlys}PZBK=<<*v4-B-%K32cR=@xE&bP27l4a4pBS
zB3Gb|-24k@WGsrp<Ki&JhOIILMFN4tCyNUl^Hq~}HbLjAOrMf!xl{K1AqPfgcz+z%
zTMDDgQ<TSAkg4hZF{nE-3Y-lPU8FMtA#AekIHCg10Wj3cw4|*&&q&k?p?!?E!w`pY
zb9+AUySM$V`faYK_L@M=&ibYGHR#h)6SbE~633e-E~kg-(kUWQG_|ACTJ!L>tFqyc
zg`3LUfh1wEXbA&>$ws?QC7igFuGk>|iCGkDJ)erkw}>gC8Osu^B|h+^xyZMpX-Q6&
z&cx}kQ3<M8RGkZXQazqa-)e(A-Gfe%2#Kn8VaO_7+GG@2tT`Ijh#LqIp}6qictQ#;
zQ&+FGETsu;8MY;SV~h8Rl9-alz9|UJ)(yb#l{P0E>RbD90bHK3UVBpat@az;1MSuY
z0<O{6q~$LWl;dk?8W78>E!81Wci<<vfrNX;lekvgxX&4qu0r|nu91N3jUw#h_TpAY
zTbprFxQqEj+_kMC+1O0!u&f!BlqsMww1pa`X09$gokbDyj3HZ9H7vO*+n3meaVBpU
zVmn=HD&2e?EvTmGkeT5umP-UA1{wxIQvKajES_iZ>8%|)aE94@o^e1cTT?XwNN;l0
zR!w#AXf7hy51vNc%Ip~&z?PTL0;fjo&zq-Q?cSO0`)$4xU{#<1C;$q80-yjW01AKt
zpa3WU3V;Hj04M+ofC8WZC;$q80-yjW01AKtpuqo!z#BmSGUPu|LjKXO`@LiIe^YsX
NWZL!dwgTg}e*@AzT9yC+

literal 0
HcmV?d00001

diff --git a/tests/f_extents_bad_blk/name b/tests/f_extents_bad_blk/name
new file mode 100644
index 00000000..15cbbe62
--- /dev/null
+++ b/tests/f_extents_bad_blk/name
@@ -0,0 +1 @@
+extent pointing to non-existent block
-- 
2.14.3 (Apple Git-98)




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux