Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 154754 Details for
Bug 239625
NFS O_EXCL|O_CREAT on R/O filesystem creates erroneous negative dentry
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
linux-2.6.9-nfs-lookup-dont-hash-dentry.patch (text/plain), 909 bytes, created by
Jeff Layton
on 2007-05-15 17:51:31 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2007-05-15 17:51:31 UTC
Size:
909 bytes
patch
obsolete
>diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c >index 15ad373..2dd5960 100644 >--- a/fs/nfs/dir.c >+++ b/fs/nfs/dir.c >@@ -866,9 +866,15 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru > if (error < 0) > goto out_unlock; > >- /* If we're doing an exclusive create, optimize away the lookup */ >- if (nfs_is_exclusive_create(dir, nd)) >- goto no_entry; >+ /* >+ * If we're doing an exclusive create, optimize away the lookup >+ * but don't hash the dentry. >+ */ >+ if (nfs_is_exclusive_create(dir, nd)) { >+ d_instantiate(dentry, NULL); >+ error = 0; >+ goto out_unlock; >+ } > > error = nfs_cached_lookup(dir, dentry, &fhandle, &fattr); > if (error != 0) { >@@ -1189,6 +1195,8 @@ int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fhandle, > goto out_err; > } > d_instantiate(dentry, inode); >+ if (d_unhashed(dentry)) >+ d_rehash(dentry); > return 0; > out_err: > d_drop(dentry);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 239625
: 154754