fsx.sh 781 B

12345678910111213141516171819202122232425262728
  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. TST_TESTFUNC="do_test"
  11. . nfs_lib.sh
  12. do_test()
  13. {
  14. ITERATIONS=${ITERATIONS:=50000}
  15. tst_res TINFO "starting fsx-linux -N $ITERATIONS..."
  16. fsx-linux -N $ITERATIONS testfile > fsx-out.log 2>&1
  17. if [ "$?" -ne 0 ]; then
  18. tst_res TFAIL "Errors have resulted from this test"
  19. cat fsx-out.log
  20. else
  21. tst_res TPASS "fsx-linux test passed"
  22. fi
  23. }
  24. tst_run