freebsd-dev/sys/fs/nfsserver
Rick Macklem 10dff9da97 nfsd: Return ENXIO instead of EPERM when nfsd(8) already running
The nfsd(8) daemon generates an error message that does not
indicate that the nfsd daemon is already running when the nfssvc(2)
syscall fails for the NFSSVC_STABLERESTART.  Also, the check for
running nfsd(8) in a vnet prison will return EPERM when it fails.

This patch replaces EPERM with ENXIO so that the nfsd(8) daemon
can generate more reasonable failure messages.  The nfsd(8) daemon
will be patched in a future commit.

MFC after:	3 months
2023-02-22 13:19:07 -08:00
..
nfs_fha_new.c nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
nfs_fha_new.h nfsd: Get rid of useless "pool" field in nfs_fha_new.c 2023-02-17 07:34:40 -08:00
nfs_nfsdcache.c nfsd: Add VNET_SYSUNINIT() macros for vnet cleanup 2023-02-20 13:11:22 -08:00
nfs_nfsdkrpc.c nfsd: Fix initialization broken by 7344856e3a6d 2023-02-12 09:16:56 -08:00
nfs_nfsdport.c nfsd: Return ENXIO instead of EPERM when nfsd(8) already running 2023-02-22 13:19:07 -08:00
nfs_nfsdserv.c nfsd: Fix handling of the error case for nfsvno_open 2023-02-08 13:08:51 -08:00
nfs_nfsdsocket.c nfsd: Wrap nfsstatsv1_p in the NFSD_VNET() macro 2023-02-15 17:39:07 -08:00
nfs_nfsdstate.c nfsd: Wrap nfsstatsv1_p in the NFSD_VNET() macro 2023-02-15 17:39:07 -08:00
nfs_nfsdsubs.c nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00