nfstest_fcmp - NFS file compare
nfstest_fcmp --server <server> [options]
Create a file using one set of NFS mount options and then verify
the data is correct by reading the file using another set of NFS mount
options.
- --version
- show program's version number and exit
- -h, --help
- show this help message and exit
- -f FILE, --file=FILE
- File where options are specified besides the system wide file
/etc/nfstest, user wide file $HOME/.nfstest or in the current directory
.nfstest file
- -s SERVER, --server=SERVER
- Server name or IP address
- -e EXPORT, --export=EXPORT
- Exported file system to mount [default: '/']
- --nfsversion=NFSVERSION
- NFS version, e.g., 3, 4, 4.1, etc. [default: 4.1]
- -m MTPOINT,
--mtpoint=MTPOINT
- Mount point [default: '/mnt/t']
- -p PORT, --port=PORT
- NFS server port [default: 2049]
- --proto=PROTO
- NFS protocol name [default: 'tcp']
- --sec=SEC
- Security flavor [default: 'sys']
- --nconnect=NCONNECT
- Multiple TCP connections option [default: '1']
- -o MTOPTS, --mtopts=MTOPTS
- Mount options [default: 'hard']
- --datadir=DATADIR
- Data directory where files are created, directory is created on the mount
point [default: '']
- --runtest=RUNTEST
- Comma separated list of tests to run, if list starts with a '^' then all
tests are run except the ones listed [default: 'all']
- --nfsopts=NFSOPTS
- NFS options used for comparing test file. NFS mount definition is a list
of arguments separated by a ':' given in the following order if positional
arguments are used (see examples): ::export:nfsversion:port:proto:sec
- --cmpopts=CMPOPTS
- NFS mount options used for comparing test file other than the ones
specified in --nfsopts [default: 'hard']
Verify data read from file is correct
Verify data written to file is correct
Run all tests: test01, test02
Use positional arguments with nfsversion=3 for second mount:
nfstest_fcmp -s 192.168.0.2 -e /exports --nfsopts :::3
Use named arguments instead:
nfstest_fcmp -s 192.168.0.2 -e /exports --nfsopts nfsversion=3
The user id in the local host must have access to run commands as
root using the 'sudo' command without the need for a password.
nfstest.test_util(3), nfstest_alloc(1),
nfstest_cache(1), nfstest_delegation(1),
nfstest_dio(1), nfstest_file(1), nfstest_interop(1),
nfstest_io(1), nfstest_lock(1), nfstest_pkt(1),
nfstest_pnfs(1), nfstest_posix(1), nfstest_rdma(1),
nfstest_sparse(1), nfstest_ssc(1), nfstest_xattr(1),
nfstest_xid(1)
Jorge Mora (mora@netapp.com)