From patchwork Thu Jan 16 03:04:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Jain X-Patchwork-Id: 3496761 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BD763C02DC for ; Thu, 16 Jan 2014 02:55:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F254D20166 for ; Thu, 16 Jan 2014 02:55:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0FB7B20165 for ; Thu, 16 Jan 2014 02:55:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbaAPCzZ (ORCPT ); Wed, 15 Jan 2014 21:55:25 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:48473 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910AbaAPCzY (ORCPT ); Wed, 15 Jan 2014 21:55:24 -0500 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0G2tIAV005159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 16 Jan 2014 02:55:19 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0G2tHgo021383 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 16 Jan 2014 02:55:18 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s0G2tHUo003249; Thu, 16 Jan 2014 02:55:17 GMT Received: from wish.sg.oracle.com (/10.186.101.18) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Jan 2014 18:55:16 -0800 From: Anand Jain To: xfs@oss.sgi.com Cc: linux-btrfs@vger.kernel.org, wangshilong1991@gmail.com, dsterba@suse.cz Subject: [PATCH 1/2 v3] xfstests: make btrfs/001.out in line with subvol delete output Date: Thu, 16 Jan 2014 11:04:36 +0800 Message-Id: <1389841476-8985-1-git-send-email-anand.jain@oracle.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1389618990-24544-1-git-send-email-anand.jain@oracle.com> References: <1389618990-24544-1-git-send-email-anand.jain@oracle.com> X-Source-IP: acsinet21.oracle.com [141.146.126.237] Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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