From patchwork Mon Oct 10 05:06:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaoguang Wang X-Patchwork-Id: 9369041 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6CF2560865 for ; Mon, 10 Oct 2016 05:12:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62E892879B for ; Mon, 10 Oct 2016 05:12:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 576EC28C41; Mon, 10 Oct 2016 05:12:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8525128B8E for ; Mon, 10 Oct 2016 05:12:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751689AbcJJFMm (ORCPT ); Mon, 10 Oct 2016 01:12:42 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:36998 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751644AbcJJFMk (ORCPT ); Mon, 10 Oct 2016 01:12:40 -0400 X-IronPort-AV: E=Sophos;i="5.20,367,1444665600"; d="scan'208";a="888235" Received: from unknown (HELO cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 10 Oct 2016 13:12:36 +0800 Received: from localhost.localdomain (unknown [10.167.226.107]) by cn.fujitsu.com (Postfix) with ESMTP id A0B7941B388A; Mon, 10 Oct 2016 13:12:30 +0800 (CST) From: Wang Xiaoguang To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH] generic/175: disable inline data feature for btrfs Date: Mon, 10 Oct 2016 13:06:47 +0800 Message-Id: <20161010050647.30262-1-wangxg.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-yoursite-MailScanner-ID: A0B7941B388A.A2CBF X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: wangxg.fnst@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For btrfs, if compression is enabled, it may generate inline data for a blocksize data range, this inline data is stored in fs tree, will not have a individual extent, try to reflink this data range at a not-zero offset will return EOPNOTSUPP, so here we disable inline data feature for btrfs. Signed-off-by: Wang Xiaoguang --- tests/generic/175 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/generic/175 b/tests/generic/175 index 964580c..b3f90dc 100755 --- a/tests/generic/175 +++ b/tests/generic/175 @@ -50,6 +50,13 @@ rm -f "$seqres.full" echo "Format and mount" _scratch_mkfs > "$seqres.full" 2>&1 +# For btrfs, if compression is enabled, it may generate inline data for a +# blocksize data range, this inline data is stored in fs tree, will not have +# a individual extent, try to reflink this data range at a not-zero offset +# will return EOPNOTSUPP, so here we disable inline data feature for btrfs. +if [ "$FSTYP" = "btrfs" ]; then + export MOUNT_OPTIONS="-o max_inline=0 $MOUNT_OPTIONS" +fi _scratch_mount >> "$seqres.full" 2>&1 testdir="$SCRATCH_MNT/test-$seq"