Skip to contentSkip to conversation

nfssvc: writting fds to kernel failed: errno 0 (Success)

DISCUSSION Arnaud Giersch 2 participants 3 messages Feb 11, 2007 – Feb 12, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

Since two months, I can see the following strange messages logged each time that rpc.nfsd is started:

Feb 11 21:46:23 bilbo nfsd[18672]: nfssvc: writting fds to kernel failed: errno 0 (Success)
Feb 11 21:46:23 bilbo nfsd[18672]: nfssvc: writting fds to kernel failed: errno 0 (Success)

It seems however harmless, the NFS server works fine.

AFAICS, these messages appeared with some kernel between 2.6.18 and 2.6.19. I don't know which one exactly. With earlier kernels, the file /proc/fs/nfsd/portlist does not exist, and the function nfssvc_setfds() from support/nfs/nfssvc.c (in nfs-utils) exits early and silently.

This issue has recently reported in the Debian bug tracking system. See
http://bugs.debian.org/408669

Regards,

Arnaud Giersch

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#1 lore raw
Quoted 9 lines · On Monday February 12, [email protected] wrote:

Hi,

Since two months, I can see the following strange messages logged each time that rpc.nfsd is started:

Feb 11 21:46:23 bilbo nfsd[18672]: nfssvc: writting fds to kernel failed: errno 0 (Success)
Feb 11 21:46:23 bilbo nfsd[18672]: nfssvc: writting fds to kernel failed: errno 0 (Success)

It seems however harmless, the NFS server works fine.

Yes, it is harmless - except that it causes concern.

The following kernel patch should stop the error (and a separate patch will fix the typo in the error message...)

Thanks,
NeilBrown

### Diffstat output

 ./fs/nfsd/nfsctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfsctl.c +1 -1
diff .prev/fs/nfsd/nfsctl.c ./fs/nfsd/nfsctl.c
@@ -123,7 +123,7 @@ static ssize_t nfsctl_transaction_write(
 		return PTR_ERR(data);
 
 	rv =  write_op[ino](file, data, size);
-	if (rv>0) {
+	if (rv >= 0) {
 		simple_transaction_set(file, rv);
 		rv = size;
 	}

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw

Lundi 12 f=E9vrier 2007, vers 00:39:49 (+0100), Neil Brown a =E9crit:

Quoted 2 lines · On Monday February 12, [email protected] wrote:
Quoted 1 line
Feb 11 21:46:23 bilbo nfsd[18672]: nfssvc: writting fds to kernel failed=

: errno 0 (Success)
[...]

Quoted 2 lines

The following kernel patch should stop the error (and a separate patch will fix the typo in the error message...)

Thanks. The patch looks ok to me, but I am sorry I can't test it for the moment. =

The machines running an NFS server that I have access to are either our main server at work, or my old home server which takes several hours to build a new kernel.

Arnaud Giersch

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs