Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n5JHrAdI074498 for ; Fri, 19 Jun 2009 12:53:11 -0500 Received: from thunker.thunk.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id AC1EF129FDE5 for ; Fri, 19 Jun 2009 10:53:36 -0700 (PDT) Received: from thunker.thunk.org (thunk.org [69.25.196.29]) by cuda.sgi.com with ESMTP id aY8K0aAbXYB7xNHO for ; Fri, 19 Jun 2009 10:53:36 -0700 (PDT) From: "Theodore Ts'o" Subject: [PATCH 3/3] Fix _require_scratch test for extN, resierfs, gfs2, and btrfs Date: Fri, 19 Jun 2009 13:53:33 -0400 Message-Id: <1245434013-9433-3-git-send-email-tytso@mit.edu> In-Reply-To: <1245434013-9433-1-git-send-email-tytso@mit.edu> References: <1245434013-9433-1-git-send-email-tytso@mit.edu> 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 Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: tytso@mit.edu The extN, reiserfs, gfs2, and btrfs filesysytem types should use the same check for a block device as XFS and UDF, and not the test for NFS, which was checking for host:/foo/bar/baz when checking for a scratch device. Also, the NFS logic was also incorrect, in that it would allow a zero-length SCRATCH_DEV to continue. Signed-off-by: "Theodore Ts'o" --- common.rc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.rc b/common.rc index 581cfba..8b9ba7d 100644 --- a/common.rc +++ b/common.rc @@ -593,7 +593,7 @@ _supported_os() _require_scratch() { case "$FSTYP" in - xfs|udf) + xfs|udf|ext2|ext3|ext4|reiserfs|gfs2|btrfs) if [ -z "$SCRATCH_DEV" -o "`_is_block_dev $SCRATCH_DEV`" = "" ] then _notrun "this test requires a valid \$SCRATCH_DEV" @@ -603,7 +603,7 @@ _require_scratch() _notrun "this test requires a valid \$SCRATCH_DEV" fi ;; - nfs*|ext2|ext3|ext4|reiserfs|gfs2|btrfs) + nfs*) echo $SCRATCH_DEV | grep -q ":" > /dev/null 2>&1 if [ ! -z "$SCRATCH_DEV" -a ! -b "$SCRATCH_DEV" -a "$?" != "0" ] then -- 1.6.3.2.1.gb9f7d.dirty _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs