K 10 svn:author V 6 karels K 8 svn:date V 27 2022-07-29T17:05:58.518077Z K 7 svn:log V 539 mountd startup: enable NFSv4 if needed on restart The mountd script in rc.d sets vfs.nfsd.server_max_nfsvers correctly when it is run at system startup, relying on the kernel default. However, if NFSv4 was enabled in /etc/rc.conf later, and the script was re-run to restart mountd, the sysctl was still set to 3. Set the sysctl to the right value in all cases. Reviewed by: rmacklem (cherry picked from commit 1cf8e6339e9add47107a6c9988a0f509225b7ef6) Git Hash: 1668ea8284b230b15fc8f096fe2110ef3546f933 Git Author: karels@FreeBSD.org END