xref: /aosp_15_r20/external/ltp/testcases/network/nfs/fsx-linux/fsx.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2016-2018 Oracle and/or its affiliates. All Rights Reserved.
4# Copyright (c) International Business Machines  Corp., 2001
5#
6#  PURPOSE: Runs the fsx-linux tool with a 50000 iterations setting to
7#	    attempt to uncover the "doread:read input/output" error
8#	    received if the latest NFS patches for 2.4.17 from Trond
9#	    are not applied. http://nfs.sf.net
10
11TST_TESTFUNC="do_test"
12
13do_test()
14{
15	ITERATIONS=${ITERATIONS:=50000}
16	tst_res TINFO "starting fsx-linux -N $ITERATIONS..."
17	fsx-linux -N $ITERATIONS
18	if [ "$?" -ne 0 ]; then
19		tst_res TFAIL "Errors have resulted from this test"
20	else
21		tst_res TPASS "fsx-linux test passed"
22	fi
23}
24
25. nfs_lib.sh
26tst_run
27