From patchwork Sat Feb 3 18:57:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Gruenbacher X-Patchwork-Id: 10199105 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 628DE602CA for ; Sat, 3 Feb 2018 18:57:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A19A28D21 for ; Sat, 3 Feb 2018 18:57:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EE5128E57; Sat, 3 Feb 2018 18:57:43 +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 EBF3D28D21 for ; Sat, 3 Feb 2018 18:57:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752847AbeBCS5m (ORCPT ); Sat, 3 Feb 2018 13:57:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43964 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752838AbeBCS5m (ORCPT ); Sat, 3 Feb 2018 13:57:42 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4311481DEC for ; Sat, 3 Feb 2018 18:57:42 +0000 (UTC) Received: from max.home.com (unknown [10.36.118.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8071A1726D; Sat, 3 Feb 2018 18:57:41 +0000 (UTC) From: Andreas Gruenbacher To: fstests@vger.kernel.org Cc: Andreas Gruenbacher Subject: [PATCH 3/3] generic/270: Check for scratch mount success Date: Sat, 3 Feb 2018 19:57:37 +0100 Message-Id: <20180203185737.21025-3-agruenba@redhat.com> In-Reply-To: <20180203185737.21025-1-agruenba@redhat.com> References: <20180203185737.21025-1-agruenba@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sat, 03 Feb 2018 18:57:42 +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 We don't want to fill up the scratch mount point if the scratch mount fails. Signed-off-by: Andreas Gruenbacher --- tests/generic/270 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/270 b/tests/generic/270 index f5026ba0..318f532a 100755 --- a/tests/generic/270 +++ b/tests/generic/270 @@ -83,7 +83,7 @@ _require_command "$KILLALL_PROG" killall rm -f $seqres.full _scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1 -_scratch_mount "-o usrquota,grpquota" +_scratch_mount "-o usrquota,grpquota" || _fail "mount failed" chmod 777 $SCRATCH_MNT quotacheck -u -g $SCRATCH_MNT 2>/dev/null quotaon -u -g $SCRATCH_MNT 2>/dev/null