From patchwork Wed Apr 11 03:53:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 151729 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4143DB6FE4 for ; Wed, 11 Apr 2012 13:54:12 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756213Ab2DKDxu (ORCPT ); Tue, 10 Apr 2012 23:53:50 -0400 Received: from li9-11.members.linode.com ([67.18.176.11]:40326 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753011Ab2DKDxu (ORCPT ); Tue, 10 Apr 2012 23:53:50 -0400 Received: from root (helo=tytso-glaptop.cam.corp.google.com) by test.thunk.org with local-esmtp (Exim 4.69) (envelope-from ) id 1SHocv-0008P1-FS; Wed, 11 Apr 2012 03:53:49 +0000 Received: from tytso by tytso-glaptop.cam.corp.google.com with local (Exim 4.71) (envelope-from ) id 1SHoct-0003Ee-DO; Tue, 10 Apr 2012 23:53:47 -0400 From: Theodore Ts'o To: Ext4 Developers List Cc: adityakali@google.com, Theodore Ts'o Subject: [PATCH] tests: add new test f_eofblocks Date: Tue, 10 Apr 2012 23:53:47 -0400 Message-Id: <1334116427-12406-1-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 1.7.10.rc3 X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on test.thunk.org); SAEximRunCond expanded to false Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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" Reviewed-by: "Aditya Kali" --- 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 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