lkml.org 
[lkml]   [2003]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: problems with nfs-server in 2.5 bk as of 030115
From
>>>>> " " == Martin Josefsson <gandalf@wlug.westbo.se> writes:

> On Sun, 2003-01-19 at 23:05, Trond Myklebust wrote:
>> Could you apply the following patch, so that I can see what the
>> actual returned error is?

> RPC: Couldn't create pipefs entry /portmap/clnteb11b574, error
> -17 RPC: Couldn't create pipefs entry /portmap/clnteb11b574,
> error -17 RPC: Couldn't create pipefs entry
> /portmap/clnteb11b574, error -17

OK. That's what I thought it might be...

Looks like rmdir() is failing, so that when 'clnt' gets reused, then
a directory with the old pathname still exists so mkdir() fails...

Could you try applying the following extra patch, just in order to
confirm that this is indeed the case (and to trace what the eventual
rmdir() error might be)?

Cheers,
Trond

--- linux-2.5.59-00-fix/net/sunrpc/clnt.c.orig 2003-01-12 22:40:13.000000000 +0100
+++ linux-2.5.59-00-fix/net/sunrpc/clnt.c 2003-01-20 00:19:15.000000000 +0100
@@ -135,7 +135,12 @@
printk(KERN_INFO "RPC: out of memory in rpc_create_client\n");
goto out;
out_no_auth:
- rpc_rmdir(clnt->cl_pathname);
+ {
+ int error = rpc_rmdir(clnt->cl_pathname);
+ if (error)
+ printk(KERN_INFO "%s: rpc_rmdir(%s) failed with error %d\n",
+ __FUNCTION__, clnt->cl_pathname, error)
+ }
out_no_path:
kfree(clnt);
clnt = NULL;
@@ -188,7 +193,12 @@
rpcauth_destroy(clnt->cl_auth);
clnt->cl_auth = NULL;
}
- rpc_rmdir(clnt->cl_pathname);
+ {
+ int error = rpc_rmdir(clnt->cl_pathname);
+ if (error)
+ printk(KERN_INFO "%s: rpc_rmdir(%s) failed with error %d\n",
+ __FUNCTION__, clnt->cl_pathname, error)
+ }
if (clnt->cl_xprt) {
xprt_destroy(clnt->cl_xprt);
clnt->cl_xprt = NULL;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.083 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site