From patchwork Fri Nov 15 14:42:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: XiaoLi Feng X-Patchwork-Id: 11246495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8CD2C138C for ; Fri, 15 Nov 2019 14:42:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6E743207FC for ; Fri, 15 Nov 2019 14:42:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EqSJXtqa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727579AbfKOOm6 (ORCPT ); Fri, 15 Nov 2019 09:42:58 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:48228 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727427AbfKOOm6 (ORCPT ); Fri, 15 Nov 2019 09:42:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573828977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vjDem+84JBsVsG8qUzXknuqHWKp4AzZyoV+bxCf3pt0=; b=EqSJXtqa84aF1XmVNyLPUPoHPSUh+Z/oaNXizgiSEKnYc8Eo81Bu2B3x3RcTd6fXYF/nsz EAthm9mCnOwy28re/wHa8zQChRwRVOUW9ru0AU5Lq86N7Rd16HAJ885o5OZt1/B7+vk+Kk j2Q59bTX3jPX/H+Cc8hdkd2PZdDDFBQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-385-trexYejhOwOWnZ6Z-FGppg-1; Fri, 15 Nov 2019 09:42:56 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 48220477 for ; Fri, 15 Nov 2019 14:42:55 +0000 (UTC) Received: from dhcp-12-126.nay.redhat.com (dhcp-12-126.nay.redhat.com [10.66.12.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 393776049E; Fri, 15 Nov 2019 14:42:53 +0000 (UTC) From: XiaoLi Feng To: fstests@vger.kernel.org Cc: Xiaoli Feng Subject: [PATCH v1] ext4/031: use _try_scratch_mount instead of _scratch_mount Date: Fri, 15 Nov 2019 22:42:48 +0800 Message-Id: <20191115144248.477-1-xifeng@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: trexYejhOwOWnZ6Z-FGppg-1 X-Mimecast-Spam-Score: 0 Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org From: Xiaoli Feng Here will check the return code of mount option. So update it to use _try_scratch_mount. Signed-off-by: Xiaoli Feng --- tests/ext4/031 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ext4/031 b/tests/ext4/031 index 53770f03..dc58214e 100755 --- a/tests/ext4/031 +++ b/tests/ext4/031 @@ -53,7 +53,7 @@ echo "Need to make some inline data..." > $TESTFILE export MOUNT_OPTIONS="$SAVE_MOUNT_OPTIONS" _scratch_unmount >> $seqres.full 2>&1 -_scratch_mount "-o dax" >> $seqres.full 2>&1 +_try_scratch_mount "-o dax" >> $seqres.full 2>&1 if [[ $? != 0 ]]; then # _require_scratch_dax already verified that we could mount with DAX.