Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id 603C029DF8 for ; Wed, 15 Jan 2014 20:54:05 -0600 (CST) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay2.corp.sgi.com (Postfix) with ESMTP id 43A7C304084 for ; Wed, 15 Jan 2014 18:54:04 -0800 (PST) Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) by cuda.sgi.com with ESMTP id QniW2JVpdRx5Yo07 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 15 Jan 2014 18:54:03 -0800 (PST) From: Anand Jain Subject: [PATCH 1/2 v3] xfstests: make btrfs/001.out in line with subvol delete output Date: Thu, 16 Jan 2014 11:03:15 +0800 Message-Id: <1389841395-8935-1-git-send-email-anand.jain@oracle.com> In-Reply-To: <1389618990-24544-1-git-send-email-anand.jain@oracle.com> References: <1389618990-24544-1-git-send-email-anand.jain@oracle.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: lin^C-btrfs@vger.kernel.org, wangshilong1991@gmail.com, dsterba@suse.cz From: Anand Jain btrfs/001 is failing as the below btrfs-progs patch changed the output during subvol delete. Patch : btrfs-progs: add options to set commit mode after subvol delete adding it to the filter Signed-off-by: Anand Jain --- v3: takes in David suggested v2: accepts Wang suggested common/filter.btrfs | 10 ++++++++++ tests/btrfs/001 | 3 ++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/common/filter.btrfs b/common/filter.btrfs index 29512cd..b81ac49 100644 --- a/common/filter.btrfs +++ b/common/filter.btrfs @@ -56,5 +56,15 @@ _filter_btrfs_device_stats() sed -e "s/ *$NUMDEVS / /g" } +_filter_transcation_commit_default() { + sed -e "/Transaction commit: none (default)/d" +} + +_filter_btrfs_subvol_delete() +{ + _filter_scratch | _filter_transcation_commit_default + +} + # make sure this script returns success /bin/true diff --git a/tests/btrfs/001 b/tests/btrfs/001 index c05d772..8258d06 100755 --- a/tests/btrfs/001 +++ b/tests/btrfs/001 @@ -40,6 +40,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15 # get standard environment, filters and checks . ./common/rc . ./common/filter +. ./common/filter.btrfs # real QA test starts here _supported_fs btrfs @@ -98,7 +99,7 @@ echo "Listing subvolumes" $BTRFS_UTIL_PROG subvolume list $SCRATCH_MNT | awk '{ print $NF }' # Delete the snapshot -$BTRFS_UTIL_PROG subvolume delete $SCRATCH_MNT/snap | _filter_scratch +$BTRFS_UTIL_PROG subvolume delete $SCRATCH_MNT/snap | _filter_btrfs_subvol_delete echo "List root dir" ls $SCRATCH_MNT _scratch_remount -- 1.7.1 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs