• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# Copyright (c) 2016 Oracle and/or its affiliates. All Rights Reserved.
3# Copyright (c) International Business Machines  Corp., 2001
4#
5# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License as
7# published by the Free Software Foundation; either version 2 of
8# the License, or (at your option) any later version.
9#
10# This program is distributed in the hope that it would be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#
18#
19#  PURPOSE: Runs the fsx-linux tool with a 50000 iterations setting to
20#	    attempt to uncover the "doread:read input/output" error
21#	    received if the latest NFS patches for 2.4.17 from Trond
22#	    are not applied. http://nfs.sf.net
23
24TCID=nfsx
25TST_TOTAL=1
26TST_CLEANUP="nfs_cleanup"
27
28. nfs_lib.sh
29. test_net.sh
30
31do_test()
32{
33	ITERATIONS=${ITERATIONS:=50000}
34	tst_resm TINFO "starting fsx-linux -N $ITERATIONS..."
35	fsx-linux -N $ITERATIONS testfile 2>&1 > fsx-out.log
36	if [ "$?" -ne 0 ]; then
37		tst_resm TFAIL "Errors have resulted from this test"
38		cat fsx-out.log
39	else
40		tst_resm TPASS "fsx-linux test passed"
41	fi
42}
43
44nfs_setup
45
46do_test
47
48tst_exit
49