Simple Go REST API for testing NFS operations.
- UID: 998
- GID: 678
- User: nfstest
docker build -t nfs-tester .docker run -p 8080:8080 -v /path/to/nfs:/mnt/nfs nfs-tester| Method | Path | Description |
|---|---|---|
| GET | / |
Service info |
| GET | /health |
Health check |
| GET | /api/v1/info |
System and mount info |
| GET | /api/v1/matrix |
Run full NFS test matrix |
| GET | /api/v1/exec?cmd=<cmd>&cwd=<path> |
Execute shell command |
The /api/v1/matrix endpoint runs these tests:
- create_file
- read_file
- append_file
- overwrite_file
- mkdir
- create_in_subdir
- chmod
- rename
- copy
- delete_file
- rmdir
- large_file_1mb
- concurrent_writes
For this app to work with NFS, configure the export with matching UID:
/data/export *(rw,sync,all_squash,anonuid=998,anongid=678,no_subtree_check,insecure)