From patchwork Fri Jun 1 08:37:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Sun X-Patchwork-Id: 10442773 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 0A744601D3 for ; Fri, 1 Jun 2018 08:38:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED94D28DE3 for ; Fri, 1 Jun 2018 08:38:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E26B928DF1; Fri, 1 Jun 2018 08:38:48 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, 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 7F79D28DE3 for ; Fri, 1 Jun 2018 08:38:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751346AbeFAIir (ORCPT ); Fri, 1 Jun 2018 04:38:47 -0400 Received: from smtp2.provo.novell.com ([137.65.250.81]:59110 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751168AbeFAIil (ORCPT ); Fri, 1 Jun 2018 04:38:41 -0400 Received: from localhost.localdomain (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by smtp2.provo.novell.com with ESMTP (TLS encrypted); Fri, 01 Jun 2018 02:38:31 -0600 From: Yong Sun To: fstests@vger.kernel.org Cc: yosun Subject: [PATCH] xfstests/btrfs: adapt ppc64le node size at least 65536 Date: Fri, 1 Jun 2018 16:37:27 +0800 Message-Id: <20180601083727.13709-1-yosun@suse.com> X-Mailer: git-send-email 2.13.6 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: yosun node size(leaf size) in ppc64le at least 65536, so mkfs with --nodesize smaller than that number will cause a fail on 057 and 122. Signed-off-by: Yong Sun --- tests/btrfs/057 | 6 ++++++ tests/btrfs/122 | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/btrfs/057 b/tests/btrfs/057 index a834b763..69d096fb 100755 --- a/tests/btrfs/057 +++ b/tests/btrfs/057 @@ -48,6 +48,12 @@ _require_scratch rm -f $seqres.full +# the nodesize in ppc64le is at least 65536, it will mismatch output +HARDWARE_PLATFORM=`uname -i` +if [ "$HARDWARE_PLATFORM" = "ppc64le" ]; then + _notrun "Not supported on ppc64le with nodesize > 4096" +fi + # use small leaf size to get higher btree height. run_check _scratch_mkfs "-b 1g --nodesize 4096" diff --git a/tests/btrfs/122 b/tests/btrfs/122 index 213a27f8..50003ad0 100755 --- a/tests/btrfs/122 +++ b/tests/btrfs/122 @@ -55,7 +55,13 @@ rm -f $seqres.full # Force a small leaf size to make it easier to blow out our root # subvolume tree -_scratch_mkfs "--nodesize 16384" >/dev/null +# Exception: leaf size at least 65536 in ppc64le +HARDWARE_PLATFORM=`uname -i` +if [ "$HARDWARE_PLATFORM" = "ppc64le" ]; then + _scratch_mkfs "--nodesize 65536" >/dev/null +else + _scratch_mkfs "--nodesize 16384" >/dev/null +fi _scratch_mount _run_btrfs_util_prog quota enable $SCRATCH_MNT