Merge of master-melb:xfs-cmds:26462a by kenmcd.
modified this test to run on xfs only.
# Check several growfs corner cases
#
#-----------------------------------------------------------------------
-# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
+# Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved.
#-----------------------------------------------------------------------
#
# creator
}
# real QA test starts here
+_supported_fs xfs
echo "*** create loop mount point"
rm -f $LOOP_MNT 2>/dev/null
mkdir $LOOP_MNT || _fail "cannot create loopback mount point"
#
# Control script for QA
#
-# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
+# Copyright (c) 2000-2002,2006 Silicon Graphics, Inc. All Rights Reserved.
#
tmp=/tmp/$$
export QA_CHECK_FS=${QA_CHECK_FS:=true}
+# by default don't output timestamps
+timestamp=${TIMESTAMP:=false}
+
# generic initialization
iam=check
+
+# we need common.config
+if ! . ./common.config
+then
+ echo "$iam: failed to source common.config"
+ exit 1
+fi
+
+# we need common
+. ./common
+
+
+# we need common.rc
if ! . ./common.rc
then
echo "check: failed to source common.rc"
# don't leave old full output behind on a clean run
rm -f check.full
-# by default don't output timestamps
-timestamp=${TIMESTAMP:=false}
-
-. ./common
-
[ -f check.time ] || touch check.time
FULL_FSTYP_DETAILS=`_full_fstyp_details`
##/bin/sh
#
-# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
+# Copyright (c) 2000-2003,2006 Silicon Graphics, Inc. All Rights Reserved.
#
# setup and check for config parameters, and in particular
#
#RMT_IRIXTAPE_DEV=snort:/dev/tape
#RMT_TAPE_USER=guest
;;
+ break)
+ MODULAR=1
+ EMAIL="nathans@larry"
+ SCRATCH_MNT=/mnt/scratch
+ #SCRATCH_DEV=/dev/sda6
+ SCRATCH_DEV=budgie:/mnt/scratch
+ TEST_DIR=/mnt/test
+ #TEST_DEV=/dev/sda5
+ TEST_DEV=budgie:/mnt/test
+ ;;
bruce)
MODULAR=0
EMAIL="nathans@larry"
##/bin/sh
#-----------------------------------------------------------------------
-# Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
+# Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# we need common.config
-if ! . ./common.config
+if [ "$iam" != "check" ]
then
- echo "$iam: failed to source common.config"
- exit 1
+ if ! . ./common.config
+ then
+ echo "$iam: failed to source common.config"
+ exit 1
+ fi
fi
# make sure we have a standard umask
type=$1
SCRATCH_OPTIONS=""
- if [ $FSTYP != "xfs" ]; then
+ if [ "$FSTYP" != "xfs" ]; then
return
fi
type=$1
TEST_OPTIONS=""
- if [ $FSTYP != "xfs" ]; then
+ if [ "$FSTYP" != "xfs" ]; then
return
fi
_check_test_fs()
{
+ if [ "$FSTYP" != "xfs" ]; then
+ return
+ fi
+
TEST_LOG="none"
TEST_RT="none"
[ "$USE_EXTERNAL" = yes -a ! -z "$TEST_LOGDEV" ] && \