6088 Unable to enable the nfs/server service when nothing is shared
Review Request #81 — Created July 27, 2015 and submitted — Latest diff uploaded
NFS service cannot be enabled if no file systems are shared. This is inconsistent with SMB, and causes confusion. It works this way, because there is automatic nfs server starting implemented, so it is not expected one might want to enable the nfs/service by hand (but this expectation is strange).
The fix is changing usr/src/cmd/fs.d/nfs/svc/nfs-server to start both nfsd and mountd regardless the number of active shares.
I tested the various scenarios to make sure the nfs/server service is enabled
even there is nothing shared. I also make sure the auto_enable feature is
still working properly.