From patchwork Wed Sep 18 05:17:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Bo X-Patchwork-Id: 2904761 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 B68E7BFF05 for ; Wed, 18 Sep 2013 05:18:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0ADAE2010B for ; Wed, 18 Sep 2013 05:18:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F0744200F3 for ; Wed, 18 Sep 2013 05:18:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388Ab3IRFSI (ORCPT ); Wed, 18 Sep 2013 01:18:08 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:49714 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136Ab3IRFSH (ORCPT ); Wed, 18 Sep 2013 01:18:07 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r8I5I4sw005844 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Sep 2013 05:18:05 GMT Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r8I5I3Op017523 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Sep 2013 05:18:04 GMT Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r8I5I3ax012183; Wed, 18 Sep 2013 05:18:03 GMT Received: from localhost.jp.oracle.com (/10.191.12.145) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 Sep 2013 22:18:03 -0700 From: Liu Bo To: linux-btrfs@vger.kernel.org Cc: xfs@oss.sgi.com Subject: [PATCH] xfstests/btrfs: do not test btrfs/010 with autodefrag Date: Wed, 18 Sep 2013 13:17:55 +0800 Message-Id: <1379481475-10842-1-git-send-email-bo.li.liu@oracle.com> X-Mailer: git-send-email 1.8.1.4 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] 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.6 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 btrfs/010 is going to create a fragmented file, however, with autodefrag this is impossible, so just skip the test when we're with autodefrag. Signed-off-by: Liu Bo --- tests/btrfs/010 | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/tests/btrfs/010 b/tests/btrfs/010 index 371f1b8..608942d 100755 --- a/tests/btrfs/010 +++ b/tests/btrfs/010 @@ -37,6 +37,14 @@ _cleanup() rm -f $tmp.* } +is_autodefrag_set() +{ + case "$MOUNT_OPTIONS" in + *autodefrag*) return 0;; + esac + return 1 +} + # get standard environment, filters and checks . ./common/rc . ./common/filter @@ -49,6 +57,10 @@ _supported_os Linux _require_scratch _require_command "/usr/sbin/filefrag" +if is_autodefrag_set; then + _notrun "this test makes no sense with autodefrag" +fi + rm -f $seqres.full _scratch_mkfs > /dev/null 2>&1