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 581138 Details for
Bug 786149
CIFS DFS doesn't work in kernel versions 2.6.32-220.x.x.el6.x86_64
[?]
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]
Patch vfs - fix LOOKUP_DIRECTORY not propagated to managed_dentry() (updated)
vfs-fix-LOOKUP_DIRECTORY-not-propagated-to-managed_dentry.patch (text/plain), 1.79 KB, created by
Ian Kent
on 2012-04-30 03:59:58 UTC
(
hide
)
Description:
Patch vfs - fix LOOKUP_DIRECTORY not propagated to managed_dentry() (updated)
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2012-04-30 03:59:58 UTC
Size:
1.79 KB
patch
obsolete
>vfs - fix LOOKUP_DIRECTORY not propagated to managed_dentry() > >From: Ian Kent <ikent@redhat.com> > >Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=798809 > >The vfs-automount infrastructure assumes that LOOKUP_DIRECTORY will >be included in the nameidata flags if a trailing slash is given on >the path being walked. But this flag is private to __link_path_walk() >so it must be added when looking up the last component. > >Also if the path being walked must follow a symlink that ends with a >"/" the nameidata flag LOOKUP_DIRECTORY can be set earlier than the >last path component and lead to an incorrect ENOTDIR. For the purpose >of possible automounting this flag isn't needed for intermediate path >components because the LOOKUP_CONTINUE flag will be set. So the check >must be made in do_lookup() so the LOOKUP_DIRECTORY flag is set only >for the required call to follow_managed(). > >Signed-off-by: Ian Kent <ikent@redhat.com> >--- > > fs/namei.c | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > > >diff --git a/fs/namei.c b/fs/namei.c >index 9a9dc01..9cafc2b 100644 >--- a/fs/namei.c >+++ b/fs/namei.c >@@ -941,6 +941,7 @@ static int do_lookup(struct nameidata *nd, struct qstr *name, > { > struct vfsmount *mnt = nd->path.mnt; > struct dentry *dentry = __d_lookup(nd->path.dentry, name); >+ int flags = nd->flags; > struct dentry *parent; > struct inode *dir; > int err; >@@ -953,7 +954,13 @@ found: > done: > path->mnt = mnt; > path->dentry = dentry; >- err = follow_managed(path, nd->flags); >+ /* >+ * Make sure follow_automount() knows about the trailing >+ * "/" but only for the real last path component. >+ */ >+ if (!(nd->flags & LOOKUP_CONTINUE) && name->name[name->len] == '/') >+ flags |= LOOKUP_DIRECTORY; >+ err = follow_managed(path, flags); > if (unlikely(err < 0)) > path_put_conditional(path, nd); > return err;
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 786149
:
567951
|
567961
|
567962
|
568665
|
568666
|
577804
|
580327
|
580329
| 581138