Xfstests
From Linux NFS
Contents |
Setup
Clone and configure the xfstests source code on your NFS client:
git clone git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git cd xfstests ./configure
The configure script might complain about missing packages needed to run the tests. You should install those using your distribution's package manager and rerun ./configure before continuing. Build the test suite when you are ready:
make
Next, add the fsgqa user and group:
sudo useradd fsgqa sudo groupadd fsgqa
Finally, configure test and scratch exports on your NFS server. The exports MUST have different fsid values set if they are on the same local filesystem:
# /etc/exports - exports(5) - directories exported to NFS clients /export/test *(rw,no_subtree_check,no_root_squash) /export/scratch *(rw,no_subtree_check,no_root_squash,fsid=1)
Running
Copy local.config.example to local.config and edit the file with your server information
- TEST_DEV and SCRATCH_DEV refer to the server export information
- TEST_DIR and SCRATCH_MNT are mountpoints on the client
- NFS_MOUNT_OPTIONS is to configure mount options
# Ideally define at least these 5 to match your environment # The first 2 are required. # See README for other variables which can be set. export TEST_DEV=192.168.0.100:/export/test export TEST_DIR=/nfs/test export SCRATCH_DEV=192.168.0.100:/export/scratch export SCRATCH_MNT=/nfs/scratch export NFS_MOUNT_OPTIONS="-o rw,relatime,vers=4.1"
Alternatively, these values can be set as global variables through the command line.
Now you should be able to run the tests:
./check -nfs # Runs default tests ./check -nfs -g quick # Runs tests in the "quick" group ./check -nfs generic/001 # Runs a specific test and then exits
Expected output / failures ("quick" group)
NFS v3
Ran: generic/001 generic/002 generic/005 generic/006 generic/007 generic/011 generic/013 generic/014 generic/023 generic/028 generic/035 generic/075 generic/080 generic/087 generic/088 generic/091 generic/099 generic/112 generic/113 generic/123 generic/126 generic/131 generic/184 generic/193 generic/198 generic/207 generic/210 generic/211 generic/212 generic/215 generic/221 generic/236 generic/237 generic/240 generic/245 generic/246 generic/247 generic/248 generic/249 generic/257 generic/258 generic/263 generic/286 generic/308 generic/309 generic/313 generic/314 generic/355 generic/360 generic/375 generic/378 generic/394 generic/423 generic/426 generic/428 generic/430 generic/431 generic/432 generic/433 generic/434 generic/436 generic/437 generic/443 generic/444 generic/445 generic/448 generic/450 generic/451 generic/465 generic/467 generic/469 generic/477 generic/478 Failures: generic/035 generic/099 generic/258 generic/375 generic/423 generic/444 generic/465 generic/467 generic/477 Failed 9 of 73 tests
NFS v4.0
Ran: generic/001 generic/002 generic/005 generic/006 generic/007 generic/011 generic/013 generic/014 generic/023 generic/028 generic/035 generic/075 generic/080 generic/087 generic/088 generic/091 generic/112 generic/113 generic/123 generic/126 generic/131 generic/184 generic/193 generic/198 generic/207 generic/210 generic/211 generic/212 generic/215 generic/221 generic/236 generic/240 generic/245 generic/246 generic/247 generic/248 generic/249 generic/257 generic/258 generic/263 generic/308 generic/309 generic/313 generic/314 generic/355 generic/360 generic/378 generic/394 generic/423 generic/426 generic/428 generic/430 generic/431 generic/432 generic/433 generic/434 generic/437 generic/443 generic/450 generic/451 generic/465 generic/467 generic/469 generic/477 generic/478 Failures: generic/035 generic/423 generic/426 generic/465 generic/467 generic/477 Failed 6 of 65 tests
NFS v4.1
Ran: generic/001 generic/002 generic/005 generic/006 generic/007 generic/011 generic/013 generic/014 generic/023 generic/028 generic/035 generic/075 generic/080 generic/087 generic/088 generic/091 generic/112 generic/113 generic/123 generic/126 generic/131 generic/184 generic/193 generic/198 generic/207 generic/210 generic/211 generic/212 generic/215 generic/221 generic/236 generic/240 generic/245 generic/246 generic/247 generic/248 generic/249 generic/257 generic/258 generic/263 generic/308 generic/309 generic/313 generic/314 generic/355 generic/360 generic/378 generic/394 generic/423 generic/426 generic/428 generic/430 generic/431 generic/432 generic/433 generic/434 generic/437 generic/443 generic/450 generic/451 generic/465 generic/467 generic/469 generic/477 generic/478 Failures: generic/035 generic/423 generic/465 Failed 3 of 65 tests
NFS v4.2
Ran: generic/001 generic/002 generic/005 generic/006 generic/007 generic/011 generic/013 generic/014 generic/023 generic/028 generic/035 generic/075 generic/080 generic/086 generic/087 generic/088 generic/091 generic/112 generic/113 generic/123 generic/126 generic/131 generic/184 generic/193 generic/198 generic/207 generic/210 generic/211 generic/212 generic/213 generic/214 generic/215 generic/221 generic/228 generic/236 generic/240 generic/245 generic/246 generic/247 generic/248 generic/249 generic/257 generic/258 generic/263 generic/286 generic/308 generic/309 generic/313 generic/314 generic/355 generic/360 generic/378 generic/391 generic/394 generic/420 generic/423 generic/426 generic/428 generic/430 generic/431 generic/432 generic/433 generic/434 generic/436 generic/437 generic/443 generic/445 generic/448 generic/450 generic/451 generic/465 generic/467 generic/469 generic/477 generic/478 Failures: generic/035 generic/423 generic/465 generic/469 Failed 4 of 75 tests