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 0000000..2e9133e --- /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 0000000..2a2bca5 --- /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 zcmeH^Z7|yh0LG(k#aY?S4Ob?s6`hDIRk5CtwHCFmnOawGRauWT)s~#57D4^D9n%TP zvQ1J{(k8>aM7-2G^%9(tjc}=;7E4S_RA`!n@R#KOpO5{pulu&=!*kD<-#vHFgJe28 zKd_d>?{mz`zC`dO{@BPBM1);^u+vqhPq7sFYV4V-&^*P@wxV^H0=s2i*63cFKDi$rypIwP#ikjO zAGrIMZq^+zJ~7}m&|vMg^lW}qOTIYQB4DHu>js4CpD*S_wK>QOJ9;eCY%x64sy_JJ zfy*k*jZ(zo?zA(2n+!jQxoLD6%)75H*xxpj^cZWsWmf;=@pnG);y3F*QN2$x{gPW zdc9#+dy~>E*yyvHY_S}mD%LWJK2jK%#`--Xh5+YRU{F?XQu=26$WHm{)U1f4D|DQb zR`bNLISSl$YEWPt9Q4R`=-=!sxYUn_Kr~dvigFK|CA*hWJ015SUe;iDW9}E%e`BoJhq=Hl!nah>SaHC@bwC-H$xkTopA(BthmCY+f$KHv+MYjGCL(vS($VQwu?ZBt^zwa#00r^$4ZU8CecSG3EE+F z2&-EW(%a>qG0U^EiB)*to(rOHf|jYZ$AEiixUJka?*c~p)9Ff9=!$dz4a5+jyCt?; z9BZa>Aan))lnc-a&_a_*>lx|Wb4ut&$HD>GpbyHV3s^=n7kDC89u}_825XxwLnXFz z94kZFw8tsA(pG=q#7XFx%pSaU)5|PvL<0;$F>n$pm7!bAwlM=J;%Cwm@u(9 zDRnwL7FLhg2rhbqM21G?L8#ZwUO~$d{tsJ~pybR1@=h?2!|nIO!vk;5yw3&0f}g{e zA?{K#+iGBy+xFVE9BaDL=mM$&<__|qc8@d% literal 0 HcmV?d00001 diff --git a/tests/f_eofblocks/name b/tests/f_eofblocks/name new file mode 100644 index 0000000..d93adc1 --- /dev/null +++ b/tests/f_eofblocks/name @@ -0,0 +1 @@ +blocks after i_size -- 1.8.3.1