#! /bin/sh
# XFS QA Test No. 013
+# $Id: 1.1 $
#
# fsstress
#
echo "fsstress.$_n : $_param"
echo "-----------------------------------------------"
# -v >$tmp.out
- if ! $here/ltp/fsstress $_param $FSSTRESS_AVOID -n $_count -d $out >/dev/null 2>&1
+ if ! $here/src/fsstress $_param $FSSTRESS_AVOID -n $_count -d $out >/dev/null 2>&1
then
echo " fsstress (count=$_count) returned $? - see $seq.full"
#cat $tmp.out >>$here/$seq.full
status=1
fi
-
+
_check_test_fs
}
rm -f $here/$seq.full
echo "brevity is wit..."
-count=1000
+count=2000
+procs=20
_check_test_fs
# and the default with multiprocess
-_do_test 2 "-p 5 -r" $count
+_do_test 2 "-p $procs -r" $count
# from Glen's notes
--- /dev/null
+#! /bin/sh
+# XFS QA Test No. 073
+# $Id: 073,v 1.1 2003/07/14 05:12:23 fsgqa Exp $
+#
+# Test xfs_copy
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of version 2 of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it would be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# Further, this software is distributed without any warranty that it is
+# free of the rightful claim of any third person regarding infringement
+# or the like. Any license provided herein, whether implied or
+# otherwise, applies only to this software file. Patent licenses, if
+# any, provided herein do not apply to combinations of this program with
+# other software, or any other product whatsoever.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write the Free Software Foundation, Inc., 59
+# Temple Place - Suite 330, Boston MA 02111-1307, USA.
+#
+# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
+# Mountain View, CA 94043, or:
+#
+# http://www.sgi.com
+#
+# For further information regarding this notice, see:
+#
+# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
+#-----------------------------------------------------------------------
+#
+# creator
+owner=harshula@melbourne.sgi.com
+
+seq=`basename $0`
+echo "QA output created by $seq"
+
+here=`pwd`
+tmp=/tmp/$$
+status=1 # failure is the default!
+trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
+
+# get standard environment, filters and checks
+. ./common.rc
+. ./common.filter
+
+# real QA test starts here
+
+# if error
+exit
+
+# optional stuff if your test has verbose output to help resolve problems
+#echo
+#echo "If failure, check $seq.full (this) and $seq.full.ok (reference)"
+
+# success, all done
+status=0
+exit
* -U test for user quota accounting support (mount option)
* -G test for group quota accounting support (mount option)
* Return code: 0 is true, anything else is error/not supported
+ *
+ * Test for machine features
+ * -p report pagesize
+ * -w report bits per long
*/
#include <xfs/libxfs.h>
int tflag = 0;
int gflag = 0;
int Gflag = 0;
+ int pflag = 0;
int qflag = 0;
int uflag = 0;
int Uflag = 0;
- char *fs;
+ int wflag = 0;
+ char *fs = NULL;
- while ((c = getopt(argc, argv, "ctgGquUv")) != EOF) {
+ while ((c = getopt(argc, argv, "ctgGpquUvw")) != EOF) {
switch (c) {
case 'c':
cflag++;
case 'G':
Gflag++;
break;
+ case 'p':
+ pflag++;
+ break;
case 'q':
qflag++;
break;
case 'U':
Uflag++;
break;
+ case 'w':
+ wflag++;
+ break;
case 'v':
verbose++;
break;
}
}
- if (!cflag && !tflag && !uflag && !gflag && !qflag && !Uflag && !Gflag)
- usage();
- if (optind != argc-1)
+ /* filesystem features */
+ if (cflag || tflag || uflag || gflag || qflag || Uflag || Gflag) {
+ if (optind != argc-1) /* need a device */
+ usage();
+ fs = argv[argc-1];
+ } else if (wflag || pflag) {
+ if (optind != argc)
+ usage();
+ } else
usage();
- fs = argv[argc-1];
if (cflag)
return(haschown32(fs));
if (Uflag)
return(hasxfsquota(USRQUOTA, XFS_QUOTA_UDQ_ACCT, fs));
- fprintf(stderr, "feature: dunno what you're doing?\n");
+ if (pflag) {
+ printf("%d\n", getpagesize());
+ exit(0);
+ }
+ if (wflag) {
+ printf("%d\n", BITS_PER_LONG);
+ exit(0);
+ }
+
+ fprintf(stderr, "feature: dunno what you're after.\n");
return(1);
}