From patchwork Tue Mar 6 07:02:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lu Fengqi X-Patchwork-Id: 10260855 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 4F0F36016D for ; Tue, 6 Mar 2018 07:02:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3229128E2F for ; Tue, 6 Mar 2018 07:02:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26F9828E31; Tue, 6 Mar 2018 07:02:51 +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 AB93B28E2F for ; Tue, 6 Mar 2018 07:02:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750769AbeCFHCu (ORCPT ); Tue, 6 Mar 2018 02:02:50 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:26693 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750727AbeCFHCt (ORCPT ); Tue, 6 Mar 2018 02:02:49 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="37527538" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 06 Mar 2018 15:02:47 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 0B0CF486A78A; Tue, 6 Mar 2018 15:02:44 +0800 (CST) Received: from fnst.localdomain (10.167.226.155) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 6 Mar 2018 15:02:45 +0800 From: Lu Fengqi To: , Subject: [PATCH] fstests: btrfs/004: increase the buffer size of logical-resolve to the maximum value 64K Date: Tue, 6 Mar 2018 15:02:31 +0800 Message-ID: <20180306070231.16880-1-lufq.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 X-Originating-IP: [10.167.226.155] X-yoursite-MailScanner-ID: 0B0CF486A78A.ADCE8 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lufq.fnst@cn.fujitsu.com Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Because of commit e76e13ce8c0b ("fsstress: implement the clonerange/deduperange ioctls"), dedupe makes the number of references to the same extent item increase so much that the default 4K buffer of logical-resolve is no longer sufficient. Signed-off-by: Lu Fengqi Reviewed-by: Filipe Manana --- tests/btrfs/004 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/btrfs/004 b/tests/btrfs/004 index de583cc355d4..0d2efb91dba7 100755 --- a/tests/btrfs/004 +++ b/tests/btrfs/004 @@ -103,7 +103,7 @@ _btrfs_inspect_addr() expect_addr=$3 expect_inum=$4 file=$5 - cmd="$BTRFS_UTIL_PROG inspect-internal logical-resolve -P $addr $mp" + cmd="$BTRFS_UTIL_PROG inspect-internal logical-resolve -s 65536 -P $addr $mp" echo "# $cmd" >> $seqres.full out=`$cmd` echo "$out" >> $seqres.full