From patchwork Tue Apr 10 21:34:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Dilger X-Patchwork-Id: 151697 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 7EC4DB6FF4 for ; Wed, 11 Apr 2012 07:34:28 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755527Ab2DJVeV (ORCPT ); Tue, 10 Apr 2012 17:34:21 -0400 Received: from idcmail-mo2no.shaw.ca ([64.59.134.9]:43217 "EHLO idcmail-mo2no.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759526Ab2DJVeU (ORCPT ); Tue, 10 Apr 2012 17:34:20 -0400 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6ml2no-ssvc.prod.shaw.ca) ([10.0.144.222]) by pd7mo1no-svcs.prod.shaw.ca with ESMTP; 10 Apr 2012 15:34:19 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=oQE6vNJ3d7oTBHj4PDKYH99BAdyPlqTp0xAtaaBYR4E= c=1 sm=1 a=8xE6Pl38VSwA:10 a=CYDyCxVgLFAA:10 a=BLceEmwcHowA:10 a=xOeV8rxhm4bFzxoxZSQ2Ew==:17 a=ySfo2T4IAAAA:8 a=mE-WZNJNVBHAZHOmBcoA:9 a=j6KWSCGwIGAoKi-hi_gA:7 a=axWQYnUQhmgA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO sookie-gig.adilger.int) ([68.147.105.155]) by pd6ml2no-dmz.prod.shaw.ca with ESMTP; 10 Apr 2012 15:34:19 -0600 From: Andreas Dilger To: tytso@mit.edu Cc: linux-ext4@vger.kernel.org, Andreas Dilger Subject: [PATCH] tests: add test for symlink extent Date: Tue, 10 Apr 2012 15:34:17 -0600 Message-Id: <1334093657-32559-1-git-send-email-adilger@whamcloud.com> X-Mailer: git-send-email 1.7.3.4 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Long symlinks with the EXT4_EXTENTS_FL set may have been created at one time due to the EXTENTS_FL being inherited from the parent dir. While the original cause of such symlinks has been fixed in the upstream kernel commit 2dc6b0d48ca0599837df21b14bb8393d0804af57, such symlinks may still exist in the wild. Add a test image that includes an extent symlink for sanity checks. Signed-off-by: Andreas Dilger --- tests/f_extents_symlink/expect.1 | 7 +++++++ tests/f_extents_symlink/expect.2 | 7 +++++++ tests/f_extents_symlink/image.gz | Bin 0 -> 617 bytes tests/f_extents_symlink/name | 1 + 4 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 tests/f_extents_symlink/expect.1 create mode 100644 tests/f_extents_symlink/expect.2 create mode 100644 tests/f_extents_symlink/image.gz create mode 100644 tests/f_extents_symlink/name diff --git a/tests/f_extents_symlink/expect.1 b/tests/f_extents_symlink/expect.1 new file mode 100644 index 0000000..4c5476c --- /dev/null +++ b/tests/f_extents_symlink/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/16 files (0.0% non-contiguous), 22/100 blocks +Exit status is 0 diff --git a/tests/f_extents_symlink/expect.2 b/tests/f_extents_symlink/expect.2 new file mode 100644 index 0000000..4c5476c --- /dev/null +++ b/tests/f_extents_symlink/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/16 files (0.0% non-contiguous), 22/100 blocks +Exit status is 0 diff --git a/tests/f_extents_symlink/image.gz b/tests/f_extents_symlink/image.gz new file mode 100644 index 0000000000000000000000000000000000000000..797a9fa4f245e274cd49e67d207090ea3028923a GIT binary patch literal 617 zcmb2|=HLj|KkUoIoSB=Lp33m{#@=kcxEr@OaoyZVdE@7CJpNmjc=GNu&BY zIHH!@Y^tv2ba&O{M|zL0T|5}OaEg<-_@34s3dyF=j&FpSle0si7=5AyE zd%iBguQM-y`~J&W%vrCcXZtz%{~rnyzrJ2Nxj%m2PK%OXFBktWT>rj(zV9BdW7Fkq z>i5=s{r6^X&hf2Z?8+RE2_*BM-kP;9^8Zhb)!qxTb8>j{^ikUuOaX1&VRYj z~sHX=NrGY3w^%t)fc|{#}8k1Z?CGVzFDG^zNz)>6d+g)ZM{BpRO)LI6@8=S$)$WP^U;JPCZ~v27U-?Tq z_vkTvP^pjSZp~@^V+NE+&r=6rwf F004Uf9en@* literal 0 HcmV?d00001 diff --git a/tests/f_extents_symlink/name b/tests/f_extents_symlink/name new file mode 100644 index 0000000..4aac4ac --- /dev/null +++ b/tests/f_extents_symlink/name @@ -0,0 +1 @@ +long symlink with extents flag set