[2/3] tests: add new test f_quota_extent_opt

Submitted by Theodore Ts'o on April 15, 2017, 1:41 p.m.

Details

Message ID 20170415134118.17808-2-tytso@mit.edu
State New
Headers show

Commit Message

Theodore Ts'o April 15, 2017, 1:41 p.m.
Add a test to validate the changes in commit 403bcb668e4f: "e2fsck:
update quota when optimizing the extent tree".

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
---
 tests/f_quota_extent_opt/expect.1 |  15 +++++++++++++++
 tests/f_quota_extent_opt/expect.2 |   7 +++++++
 tests/f_quota_extent_opt/image.gz | Bin 0 -> 9018 bytes
 tests/f_quota_extent_opt/name     |   1 +
 4 files changed, 23 insertions(+)
 create mode 100644 tests/f_quota_extent_opt/expect.1
 create mode 100644 tests/f_quota_extent_opt/expect.2
 create mode 100644 tests/f_quota_extent_opt/image.gz
 create mode 100644 tests/f_quota_extent_opt/name

Patch hide | download patch | download mbox

diff --git a/tests/f_quota_extent_opt/expect.1 b/tests/f_quota_extent_opt/expect.1
new file mode 100644
index 00000000..1b966213
--- /dev/null
+++ b/tests/f_quota_extent_opt/expect.1
@@ -0,0 +1,15 @@ 
+Pass 1: Checking inodes, blocks, and sizes
+Inode 12 extent tree (at level 1) could be narrower.  Fix? yes
+
+Pass 1E: Optimizing extent trees
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+[QUOTA WARNING] Usage inconsistent for ID 0:actual (147456, 3) != expected (148480, 3)
+Update quota info for quota type 0? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 12/1024 files (25.0% non-contiguous), 1339/4096 blocks
+Exit status is 1
diff --git a/tests/f_quota_extent_opt/expect.2 b/tests/f_quota_extent_opt/expect.2
new file mode 100644
index 00000000..0bd4632c
--- /dev/null
+++ b/tests/f_quota_extent_opt/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/1024 files (25.0% non-contiguous), 1339/4096 blocks
+Exit status is 0
diff --git a/tests/f_quota_extent_opt/image.gz b/tests/f_quota_extent_opt/image.gz
new file mode 100644
index 0000000000000000000000000000000000000000..21dcfbdfeb150a46a6746de21ad874a9eff12185
GIT binary patch
literal 9018
zc-rlleN>ZIn!s&4TV~g7(Ncx_K}K!Wf<P%E0!`vnAXBU&3a0XrOywg|3@Ic6CWdtC
zFeqQqDnvd^YEnc*NJ)eMA;ebs3X=2{F}^^8NHGCkNFgt8BrnN3&YnGc=A1pdXXng0
zyL)!|opbMB_x|(T=icW&KU~qTSC#&L{<BwKn>D=heW~r5dEQoSJrWGW#Ds;vl{s`X
z_4ciqTkTo5wo8tu%j!}MxBFs~8qynX#U*`sy!ml5{c+sowf=R5nXx5-$LQj%5e>0P
zxBVZV&wRNe{r2hbHRPcXn@wo474|lLBAtqzUwW`?Ju9*Wn?ACf(V`s|E5U+B*8OU<
zMdLqwB{DQg*4!BrLMD3+C8#=>r7zmsBu3BZcLHm=yQQ76gYfCHrD?%2wMFX@aN?iO
zH`TPn*w3x6dDt3c!N&O^d6Ug&k~+tJq4}wdU(OD_C?Qtwo$TgSxQyj|QeSWHw49yS
z9Z-8D2p8>r@}!(Af=7>bUx_oxG?r*yOJf={rYqKOQ8TsU#92bO!QWU&hiwCm>H*ZZ
zE-mA7PrjOJ1zMLLf#))gZ&MFXMJey!$tnKrK@@9iA5K69$(@R)2?iRj&1maHG*@*`
zzFzg8b2etTlO4B2!4sY;u4WGCr5!&sd?=ZuFPKC?FTG(;#;+O<1UBQ7;#hRL?rK{=
zdtzN@_K!iGfs^ti^*qU~C#JkCa%5&Yy)$rX=CXQ`lZ5sBag2%mqeA>d;JSHf3U9S^
zq+&!08N%+8I2f;K+yzrTG)<p!Z8abm4}E@B-GZHS;J(LRLwI+cu1~O6P~z_~7YO^x
zfookvumS4wk3U}ZaTk==A9tG=*4^dG7D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H$@nCjmax{a15IX)K}P|H
zEQ(~)5!~><K@;G+kQMlgRCG!C>;IPQfKOyik1SnMkSdTAq$rB>K2pZQZr~ztPaaPq
zR&dGid1wz1m7*x|tT6c6ryvB7$U?*T+BpyWcI8p{3FIQ~Ny#bo6#XqyVB{GxV$<`m
zOT0#6=(5JC-m2)j`DFdy-_PsL8!zDl*fiv}IT6%_TeQN>svYQ(Sp_o1wiI27QH1xi
z??YAtE^-qIr=hIj?&W+AUxEY@eyU#~p<K1so{M~Ab^{McqEh{e2xY2|>@1|v8~}Pt
zbSct8f=Cr&{}`z>7lG*#zZCTbZZIdYXltdXt2kXA6ef@dMJOH^-!^!0m@F<*Zhj2L
zODr1Wdc$@OhcyCi24-bB5el7gonZ?nht&h&fon2b1o5KEubqiF&Ay<ESeg1CI7F5d
zngCStfA0^&Tzd)b_z%#tto=y7`M2O-yF*BG4o(7_f&KD+;GQf#g0Ie*($DDLeAzJQ
zdQ%)H!2hjg=D*=2+iQ|g*N5{}i$2r3mX`sc_R<yGTMS)LGa!&rOFFAnjWTY!b$)#P
zlgIyRX6CP6{JYJ}=|i+J@~1?hwa9t>YMz&gpToYHR!MyfZ<0>6d^0%M)-f2^Kh`$-
zqC~?QA3lK|bFI~PL_Z)iwiYnYa8ILUMN`*;$F|hke!er#RHHuu3_;}SA?hg`alM+i
zX!)h-#IUc4*}`HR3T5~_CaXGz#@1PfW(-?+ziigu#@tJ~EJq#d{7lO~?&-=e38or4
zYngdt{6Z0CtyY`JXO+f;ql0(2jp@m=rv=#L#hg5dvS#HyUtxt6R#;(${~BLW^Rd-$
M7Ki9pt=hNh&y+Za^Z)<=

literal 0
Hc-jL100001

diff --git a/tests/f_quota_extent_opt/name b/tests/f_quota_extent_opt/name
new file mode 100644
index 00000000..8c5d7a90
--- /dev/null
+++ b/tests/f_quota_extent_opt/name
@@ -0,0 +1 @@ 
+extent optimization with quota