nfs04 738 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. # Copyright (c) 2015-2018 Oracle and/or its affiliates. All Rights Reserved.
  4. # Copyright (c) International Business Machines Corp., 2003
  5. #
  6. # PURPOSE: Creates a text file of specified size locally and copies
  7. # the file to an NFS mountpoint. The two files are compared
  8. # and checked for differences. If the files differ, then
  9. # the test fails. By default, this test creates a 10Mb file
  10. # and runs for one loop.
  11. #
  12. # Created by: Robbie Williamson (robbiew@us.ibm.com)
  13. TST_TESTFUNC="do_test"
  14. . nfs_lib.sh
  15. do_test()
  16. {
  17. tst_res TINFO "create 10M file"
  18. ROD nfs04_create_file 10 nfs04.testfile
  19. tst_res TPASS "Test finished"
  20. }
  21. tst_run