From 7a069f1ca9dcd6e525d51924d0d873ceb979da5e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 10 Apr 2012 23:50:37 -0400 Subject: [PATCH] tests: add new test f_eofblocks Since we have changed the eofblocks handling in e2fsck (by removing the need for the EOFBLOCKS_FL flag), we should have a test to check out how we handle uninitialized and initialized blocks which are exist beyond i_size, with files that have (and don't have) the EOFBLOCKS_FL. Signed-off-by: "Theodore Ts'o" --- tests/f_eofblocks/expect.1 | 13 +++++++++++++ tests/f_eofblocks/expect.2 | 7 +++++++ tests/f_eofblocks/image.gz | Bin 0 -> 1364 bytes tests/f_eofblocks/name | 1 + 4 files changed, 21 insertions(+) create mode 100644 tests/f_eofblocks/expect.1 create mode 100644 tests/f_eofblocks/expect.2 create mode 100644 tests/f_eofblocks/image.gz create mode 100644 tests/f_eofblocks/name diff --git a/tests/f_eofblocks/expect.1 b/tests/f_eofblocks/expect.1 new file mode 100644 index 000000000..2e9133e1e --- /dev/null +++ b/tests/f_eofblocks/expect.1 @@ -0,0 +1,13 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 30, i_size is 2048, should be 4096. Fix? yes + +Inode 31, i_size is 2048, should be 4096. Fix? yes + +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 31/56 files (29.0% non-contiguous), 83/400 blocks +Exit status is 1 diff --git a/tests/f_eofblocks/expect.2 b/tests/f_eofblocks/expect.2 new file mode 100644 index 000000000..2a2bca5c9 --- /dev/null +++ b/tests/f_eofblocks/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: 31/56 files (29.0% non-contiguous), 83/400 blocks +Exit status is 0 diff --git a/tests/f_eofblocks/image.gz b/tests/f_eofblocks/image.gz new file mode 100644 index 0000000000000000000000000000000000000000..2586a6a7670ad609ba7e66911a8f7a8f4df96321 GIT binary patch literal 1364 zc-rmFZ!nt&0LSsDTX9x)bHkO%YDFg^OI56AWUWQ5Yo^xKzpAW9s@g_QQ;VRUZO3dv zvTTzSC2cYciTG3N)Suv#Y=lci)MAN=i3&}V5FSaMXMMRBd%Ji0y!gHQ-Ve!ib-iyZ zOWfz2OSzOoMr{5;{Q5lE*X23Qc;=80JicDVN`HkCCcS%%IQrJd3AYLAm#5epaR<8J zc+)@k@RtJbO+i9i&8P1dqbke1PrRfMRM!g#*{$x?zr^e`($-is{Zz4H^p4iE@wlfk zMh9qg3~g=1Qsm_4Pp`%){d&U;Y~AWR9^+lA(os1ha;8}S_=)UP(zZxZxb`63Fn|xQ zs{Wyc%a4kZmQz)eRU#N0Hw4Hw+g6z%VrOL>Gf8n(~3n{##{kpxnXe=GjLB=9Hpz7@5zN%W&fpL$uy}>bYd*!x55S%9X7vC8@LOXcHv4Xi_iB z=?n>jkK5r#Hdv)axU(DhvtuR>O+^~Zp_Xt<-&zTgH%2h!qwdX9LL5` zw!Y|;T&XA!IB^nsDszOc-}JFaThIW5Pzs!c%4O(wi+#d~m-DM}A>uURr}5 zkA*d3c7mJ1D3PI21rX|0i%-Z(RNw=V5|o^oLf#Gq^0MCdd4GQ?d@ zW!sFbO8bj<9mkfbG`WH5V7asj4I~ku@5=06oD0c%kS&D