Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id D08A97F58 for ; Mon, 14 Dec 2015 17:41:12 -0600 (CST) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay2.corp.sgi.com (Postfix) with ESMTP id BCB6E304066 for ; Mon, 14 Dec 2015 15:41:12 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id 7XJvgLyaKsHZF63t (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 14 Dec 2015 15:41:11 -0800 (PST) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 051EB8F511 for ; Mon, 14 Dec 2015 23:41:11 +0000 (UTC) From: Andreas Gruenbacher Subject: [XFSTESTS v3 2/6] check: Enforce xfs filesystem recreation on $TEST_DEV Date: Tue, 15 Dec 2015 00:40:58 +0100 Message-Id: <1450136462-11521-3-git-send-email-agruenba@redhat.com> In-Reply-To: <1450136462-11521-1-git-send-email-agruenba@redhat.com> References: <1450136462-11521-1-git-send-email-agruenba@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: Andreas Gruenbacher When recreating xfs filesystems on $TEST_DEV, pass option -f to enforce the filesystem creation instead of refusing to overwrite existing xfs filesystems. We already do that for ext2/ext3/ext4 filesystems. Signed-off-by: Andreas Gruenbacher --- common/rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/rc b/common/rc index 4c2f42c..ce6ae3d 100644 --- a/common/rc +++ b/common/rc @@ -572,6 +572,9 @@ _test_mkfs() btrfs) $MKFS_BTRFS_PROG $MKFS_OPTIONS $* $TEST_DEV > /dev/null ;; + xfs) + $MKFS_PROG -t $FSTYP -- -f $MKFS_OPTIONS $* $TEST_DEV + ;; ext2|ext3|ext4) $MKFS_PROG -t $FSTYP -- -F $MKFS_OPTIONS $* $TEST_DEV ;; -- 2.5.0 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs