lkml.org 
[lkml]   [1999]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: knfsd error message
Date
From
What kind of computer is the client?  If it is a linux box I would
be confused. This message is not harmful, nfs is just tring to
create a files/directory that all ready exists.

Here is a BETA patch that may get rid of most of these messages.

Allen

>>>Greg Whalin said:
> During large cvs checkouts on a NFS mounted disk, the knfs server reports
> tons of the following message ...
>
> nfsd_create: dentry filename not negative!
>
> This repeats for most of the files checked out. Any ideas?
>
> Thanks,
> Greg
>

---------------------------------
G. Allen Morris III

diff -u -X exclude linux-2.2.1/fs/nfsd/vfs.c linux/fs/nfsd/vfs.c
--- linux-2.2.1/fs/nfsd/vfs.c Tue Feb 2 09:53:31 1999
+++ linux/fs/nfsd/vfs.c Wed Feb 17 11:24:55 1999
@@ -658,10 +658,6 @@
if (IS_ERR(dchild))
goto out_nfserr;
fh_compose(resfhp, fhp->fh_export, dchild);
- /* Lock the parent and check for errors ... */
- err = fh_lock_parent(fhp, dchild);
- if (err)
- goto out;
} else {
dchild = resfhp->fh_dentry;
if (!fhp->fh_locked)
@@ -670,6 +666,15 @@
dentry->d_parent->d_name.name,
dentry->d_name.name);
}
+ err = nfserr_exist;
+ if (dchild->d_inode)
+ goto out;
+ if (!fhp->fh_locked) {
+ /* Lock the parent and check for errors ... */
+ err = fh_lock_parent(fhp, dchild);
+ if (err)
+ goto out;
+ }
/*
* Make sure the child dentry is still negative ...
*/
\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.029 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site