Skip to content

Commit 5ed6441

Browse files
committed
fstests: Fix NFS mount options for fstests
If the NFS mount command line does not specify an NFS version, the client uses the default protocol version , which for recent versions of nfs-utils, is NFSv4.2. I noticed the NFS test sections in our nfs.config file specifies the NFS version for the test partition, but not the scratch partition. This is throwing off the feature test macros in fstests, so it is testing, say, xattrs, on NFSv4.1 mounts, and failing 100% of the time. Ensure that the test and scratch partitions use the same NFS version. Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent ad7a161 commit 5ed6441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playbooks/roles/fstests/templates/nfs/nfs.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ MOUNT_OPTIONS="-o vers=4.1"
2121

2222
# Test over RDMA
2323
[nfs_rdma]
24-
TEST_FS_MOUNT_OPTS="-o rdma"
24+
TEST_FS_MOUNT_OPTS="-o rdma,vers=4.1"
2525
MOUNT_OPTIONS="-o rdma,vers=4.1"
2626
{% endif %}
2727
{% if fstests_nfs_section_tls -%}
2828

2929
# Test NFS with RPC over TLS
3030
[nfs_tls]
31-
TEST_FS_MOUNT_OPTS="-o xprtsec=mtls"
31+
TEST_FS_MOUNT_OPTS="-o xprtsec=mtls,vers=4.1"
3232
MOUNT_OPTIONS="-o xprtsec=mtls,vers=4.1"
3333
{% endif %}
3434
{% if fstests_nfs_section_nfsd -%}

0 commit comments

Comments
 (0)