From: Tao Ma Subject: [PATCH 2/2] e2fsck/tests: Add the regression test case for e2fsck. Date: Thu, 17 May 2012 15:16:07 +0800 Message-ID: <1337238967-4704-3-git-send-email-tm@tao.ma> References: <1337238967-4704-1-git-send-email-tm@tao.ma> To: linux-ext4@vger.kernel.org Return-path: Received: from oproxy8-pub.bluehost.com ([69.89.22.20]:60246 "HELO oproxy8-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1761165Ab2EQHQT (ORCPT ); Thu, 17 May 2012 03:16:19 -0400 Received: from [182.92.247.2] (helo=tma-laptop1.taobao.ali.com) by box585.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SUuwc-0005vf-Kr for linux-ext4@vger.kernel.org; Thu, 17 May 2012 01:16:19 -0600 In-Reply-To: <1337238967-4704-1-git-send-email-tm@tao.ma> Sender: linux-ext4-owner@vger.kernel.org List-ID: From: Tao Ma In commit "e2fsck: Let end_blk to be the maximum value of u32." we fix a bug where a normal fallocate will cause e2fsck complain. So add it to the regression test suite. Signed-off-by: Tao Ma --- tests/f_zero_extent_length/expect.1 | 7 +++++++ tests/f_zero_extent_length/expect.2 | 7 +++++++ tests/f_zero_extent_length/image.gz | Bin 0 -> 5102 bytes tests/f_zero_extent_length/name | 1 + 4 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 tests/f_zero_extent_length/expect.1 create mode 100644 tests/f_zero_extent_length/expect.2 create mode 100644 tests/f_zero_extent_length/image.gz create mode 100644 tests/f_zero_extent_length/name diff --git a/tests/f_zero_extent_length/expect.1 b/tests/f_zero_extent_length/expect.1 new file mode 100644 index 0000000..762159c --- /dev/null +++ b/tests/f_zero_extent_length/expect.1 @@ -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 (16.7% non-contiguous), 1227/4096 blocks +Exit status is 0 diff --git a/tests/f_zero_extent_length/expect.2 b/tests/f_zero_extent_length/expect.2 new file mode 100644 index 0000000..762159c --- /dev/null +++ b/tests/f_zero_extent_length/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 (16.7% non-contiguous), 1227/4096 blocks +Exit status is 0 diff --git a/tests/f_zero_extent_length/image.gz b/tests/f_zero_extent_length/image.gz new file mode 100644 index 0000000000000000000000000000000000000000..0b6915805bc7c3d67b9bf0f944f980b36012268e GIT binary patch literal 5102 zcmb2|=HM{n-0IK3oSB=Lp33m{u78e5s070Y^WBScwzp2RH+-t{lY_{A6(w~8 zL)9)$^`=g#RICD+?rfbW|xE5jfl^Fk47()~U$+s*edxoa}rp6SlP%t;{b= zOY|0Bx$rI5=ijRG?`PkDN?U*Zbz%DYuYW#-zWv;o zzyIfhcX>HKGoGB7R&H}Q*|pujU(VlG{qKRkzl_bqBYfXQ z`%~91whPSNC#$>h_1Wohn%DLy9y=vr{;1mIR^e~v;%6$d(@t&sSa<6oV?@&Gq&58; zbyL3DN3PuxdLX6rSJC!gtPH3i)#!8m7q9L2rxta*|MD^K|B9FE-rO^*Rb0u_`p3?^ zc43gD)T#FmH>+LImY4hY*_W5y?9);oKfADW zPi}0BUEP<8&9UJ=_ut#kj*+muR#=z(<%n(gggaOD@=xd6zZbk(_Se63-+5rDSEgN_ zf7@I?ZapYXHMBnYC4Xwgo9q9l%za(Yh?>mk%UiHHtH