2007-02-11 23:10:06

by Arnaud Giersch

[permalink] [raw]
Subject: nfssvc: writting fds to kernel failed: errno 0 (Success)

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


2007-02-11 23:40:25

by NeilBrown

[permalink] [raw]
Subject: Re: nfssvc: writting fds to kernel failed: errno 0 (Success)

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

Signed-off-by: Neil Brown <[email protected]>

### Diffstat output
./fs/nfsd/nfsctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff .prev/fs/nfsd/nfsctl.c ./fs/nfsd/nfsctl.c
--- .prev/fs/nfsd/nfsctl.c 2007-02-12 10:37:53.000000000 +1100
+++ ./fs/nfsd/nfsctl.c 2007-02-12 10:38:11.000000000 +1100
@@ -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

2007-02-12 00:43:00

by Arnaud Giersch

[permalink] [raw]
Subject: Re: nfssvc: writting fds to kernel failed: errno 0 (Success)

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

> On Monday February 12, [email protected] wrote:
>> Feb 11 21:46:23 bilbo nfsd[18672]: nfssvc: writting fds to kernel failed=
: errno 0 (Success)
[...]
> 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