NFSTEST_SPARSE(1) | nfstest_sparse 1.0 | NFSTEST_SPARSE(1) |
nfstest_sparse - Sparse file tests
nfstest_sparse --server <server> [options]
Verify correct functionality of sparse files. These are files which have unallocated or uninitialized data blocks as holes. The new NFSv4.2 operation SEEK is used to search for the next hole or data segment in a file.
Basic tests verify the SEEK operation returns the correct offset of the next hole or data with respect to the starting offset given to the seek system call. Verify the SEEK operation is sent to the server with the correct stateid as a READ call. All files have a virtual hole at the end of the file so when searching for the next hole, even if the file does not have a hole, it returns the size of the file.
Some tests include testing at the protocol level by taking a packet trace and inspecting the actual packets sent to the server.
Negative tests include trying to SEEK starting from an offset beyond the end of the file.
Run all SEEK tests: seek01, seek02, seek03, seek04
Verify SEEK succeeds searching for the next data
Verify SEEK succeeds searching for the next hole
Verify SEEK searching for next data fails with ENXIO when offset is beyond the end of the file
Verify SEEK searching for next hole fails with ENXIO when offset is beyond the end of the file
Run all tests: seek01, seek02, seek03, seek04
The only required option is --server
$ nfstest_sparse --server 192.168.0.11
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.
Valid only for NFS version 4.2 and above.
nfstest.test_util(3), nfstest.utils(3), nfstest_alloc(1), nfstest_cache(1), nfstest_delegation(1), nfstest_dio(1), nfstest_fcmp(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_ssc(1), nfstest_xattr(1), nfstest_xid(1), packet.nfs.nfs4_const(3)
No known bugs.
Jorge Mora (mora@netapp.com)
21 March 2023 | NFStest 3.2 |