From patchwork Wed Aug 30 06:26:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 9928781 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 BB85160380 for ; Wed, 30 Aug 2017 06:27:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A347924B48 for ; Wed, 30 Aug 2017 06:27:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96CBB27480; Wed, 30 Aug 2017 06:27:28 +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 3DC8124B48 for ; Wed, 30 Aug 2017 06:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750757AbdH3G0u (ORCPT ); Wed, 30 Aug 2017 02:26:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46077 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbdH3G0u (ORCPT ); Wed, 30 Aug 2017 02:26:50 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1DDC7C047B79 for ; Wed, 30 Aug 2017 06:26:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1DDC7C047B79 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=zlang@redhat.com Received: from dhcp-12-116.nay.redhat.com (dhcp-12-116.nay.redhat.com [10.66.12.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id 463B084779 for ; Wed, 30 Aug 2017 06:26:49 +0000 (UTC) From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH] xfs/095: require 512b sector size SCRATCH_DEV Date: Wed, 30 Aug 2017 14:26:45 +0800 Message-Id: <20170830062645.17153-1-zlang@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 30 Aug 2017 06:26:50 +0000 (UTC) Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP xfs/095 fails on 4k hard sector size device, due to it runs: _mkfs_log "-l version=1 -m crc=0 -d sectsize=512" So _notrun if SCRATCH_DEV's sector size is bigger than 512b. Signed-off-by: Zorro Lang --- tests/xfs/095 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/xfs/095 b/tests/xfs/095 index 1f5a51f6..290ccf29 100755 --- a/tests/xfs/095 +++ b/tests/xfs/095 @@ -50,6 +50,10 @@ _supported_os Linux _require_scratch _require_v2log +if [ "$(blockdev --getss $SCRATCH_DEV)" != "512" ]; then + _notrun "need 512b sector size" +fi + export MOUNT_OPTIONS="-o logbsize=64k" # try and mount a v1 log with a v2 LRsize