"mount: File exists" when trying to mount a second krb5 volume!
Subsystems (3)
Thanks Trond. Saving the patch did the trick. I had to do some manual hacking to get the patch to apply because you must have done your diff against a different kernel tree revision. I'm using 2.6.18 from FC5 updates.
Once I massaged things, the patch compiled and it works. I am able to mount more than one partition with no problems now. However, I cannot speak to the finer points (like memory leaks, etc.) since I don't know the code so well. I trust someone else will independently verify it (i.e., code review) before it gets into the kernel tree.
So this brings me back to the question? Can we get this is back into the main tree as soon as possible? 2.6.19 is on rc5. So ideally we could get it in there soon. 2.6.18 has a .2 subsubrelease. So we could also get it into the .3 version soon. Thoughts?
Thanks again,
Paarvai
----- Original Message ----
From: Trond Myklebust <[email protected]>
To: Open Source <[email protected]>
Cc: [email protected]; [email protected]
Sent: Thursday, November 16, 2006 12:55:54 PM
Subject: Re: "mount: File exists" when trying to mount a second krb5 volume!
Quoted 6 lines · Open Source
I know this might be a dumb question but I'm not able to apply the patch. How do I do this?
I cut and paste everything from the "diff --git" line into a file.
Quoted 7 lines
Then I did: "patch -p1 < nfs_pipe_fix.patch" while sitting in the root directory of my kernel source.
I get the following error:
patching file
include/linux/sunrpc/clnt.h
patch: **** malformed patch at line 11: };
Don't cut n' paste, since that tends to mangle spaces, linefeed, etc. Just save the entire message using your mail browser's 'save to file' feature and feed the resulting file to 'patch -p1'.
Cheers,
Trond
Quoted 6 lines · Open Source
Thanks Trond. Saving the patch did the trick. I had to do some manual hacking to get the patch to apply because you must have done your diff against a different kernel tree revision. I'm using 2.6.18 from FC5 updates.
Quoted 7 lines
Once I massaged things, the patch compiled and it works. I am able to mount more than one partition with no problems now. However, I cannot speak to the finer points (like memory leaks, etc.) since I don't know the code so well. I trust someone else will independently verify it (i.e., code review) before it gets into the kernel tree.
I did the same with the FC6 2.6.18 kernel and while it does allow me to have more than one mount from the server autofs decides that my home is not in use any more and it unmounts it, somehow this causes the system to freeze as well.
Nov 17 16:28:14 thufir automount[2483]: mount still busy /home Nov 17 16:29:29 thufir automount[2483]: expiring path /home/georgiou Nov 17 16:29:29 thufir automount[2483]: unmounting dir = /home/georgiou Nov 17 16:29:32 thufir automount[2483]: expired /home/georgiou
Here is the patch with my changes to apply in FC6 which most likely is bad since I really don't know the code at all :(
Kostas Georgiou
include/linux/sunrpc/clnt.h +1 -0
@@ -64,6 +64,7 @@struct dentry * cl_dentry;/* inode */ struct rpc_clnt * cl_parent;/* Points to parent of clones */ struct rpc_rtt cl_rtt_default; +struct rpc_program * cl_program;struct rpc_portmap cl_pmap_default;char cl_inline_name[32 ]; };
net/sunrpc/clnt.c +11 -8
@@ -154,6 +154,7 @@ clnt->cl_prot = xprt->prot; clnt->cl_stats = program->stats; clnt->cl_metrics =rpc_alloc_iostats (clnt); + clnt->cl_program = program;rpc_init_wait_queue (&clnt->cl_pmap_default.pm_bindwait,"bindwait" );if (!clnt->cl_port)
@@ -235,6 +236,7 @@ rpc_clone_client(struct rpc_clnt *clnt) {struct rpc_clnt *new; +int err; new =kmalloc (sizeof (*new),GFP_KERNEL );if (!new)
@@ -242,6 +244,11 @@memcpy (new, clnt,sizeof (*new));atomic_set (&new->cl_count,1 );atomic_set (&new->cl_users,0 ); + err =rpc_setup_pipedir (new, clnt->cl_program->pipe_dir_name); +if (err !=0 ) { +kfree (new); +return ERR_PTR (err); + } new->cl_parent = clnt;atomic_inc (&clnt->cl_count);/* Duplicate portmapper */
@@ -250,8 +257,6 @@ new->cl_autobind =0 ; new->cl_oneshot =0 ; new->cl_dead =0 ; -if (!IS_ERR (new->cl_dentry)) -dget (new->cl_dentry);rpc_init_rtt (&new->cl_rtt_default, clnt->cl_xprt->timeout.to_initval);if (new->cl_auth)atomic_inc (&new->cl_auth->au_count);
@@ -313,12 +318,6 @@rpcauth_destroy (clnt->cl_auth); clnt->cl_auth =NULL ; } -if (clnt->cl_parent != clnt) { -if (!IS_ERR (clnt->cl_dentry)) -dput (clnt->cl_dentry); -rpc_destroy_client (clnt->cl_parent); - goto out_free; - }if (!IS_ERR (clnt->cl_dentry)) {rpc_rmdir (clnt->cl_dentry);rpc_put_mount ();
@@ -327,6 +326,10 @@xprt_destroy (clnt->cl_xprt); clnt->cl_xprt =NULL ; } +if (clnt->cl_parent != clnt) { +rpc_destroy_client (clnt->cl_parent); + goto out_free; + }if (clnt->cl_server != clnt->cl_inline_name)kfree (clnt->cl_server); out_free:
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs