From patchwork Mon Sep 11 09:25:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiao Yang X-Patchwork-Id: 9946979 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 0C80F602C9 for ; Mon, 11 Sep 2017 09:25:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1A0C28B68 for ; Mon, 11 Sep 2017 09:25:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E660D28B6D; Mon, 11 Sep 2017 09:25:52 +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 48FCA28B68 for ; Mon, 11 Sep 2017 09:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751127AbdIKJZw (ORCPT ); Mon, 11 Sep 2017 05:25:52 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:61098 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751114AbdIKJZv (ORCPT ); Mon, 11 Sep 2017 05:25:51 -0400 X-IronPort-AV: E=Sophos;i="5.42,377,1500912000"; d="scan'208";a="25626512" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 11 Sep 2017 17:25:49 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 6FD2F47278E8 for ; Mon, 11 Sep 2017 17:25:49 +0800 (CST) Received: from localhost.localdomain (10.167.220.81) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 11 Sep 2017 17:25:52 +0800 From: Xiao Yang To: CC: Xiao Yang Subject: [PATCH] generic/456: add check for fallocate flags Date: Mon, 11 Sep 2017 17:25:46 +0800 Message-ID: <1505121946-4900-1-git-send-email-yangx.jy@cn.fujitsu.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.167.220.81] X-yoursite-MailScanner-ID: 6FD2F47278E8.AA47F X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: yangx.jy@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 On RHEL6.9GA, this case could not emulate a crash and passed due to unsupported collapse_range and zero_range instead of no bug. We added check for fallocate flags to avoid confusion. Signed-off-by: Xiao Yang --- tests/generic/456 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/generic/456 b/tests/generic/456 index 8debd3f..b72acea 100755 --- a/tests/generic/456 +++ b/tests/generic/456 @@ -67,11 +67,16 @@ write 0x3e5ec 0x1a14 0x21446 zero_range 0x20fac 0x6d9c 0x40000 keep_size mapwrite 0x216ad 0x274f 0x40000 EOF -run_check $here/ltp/fsx -d --replay-ops $fsxops $SCRATCH_MNT/testfile +touch $tmp.dupops +run_check $here/ltp/fsx -d --replay-ops $fsxops --record-ops=$tmp.dupops $SCRATCH_MNT/testfile _flakey_drop_and_remount _unmount_flakey _cleanup_flakey + +ops_name=$(awk '/skip/ {printf "%s ", $2}' $tmp.dupops) +[ -n "$ops_name" ] && _notrun "fallocate does not support $ops_name" + _check_scratch_fs echo "Silence is golden"