]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: disable open intents, for now
authorSage Weil <sage@newdream.net>
Thu, 19 Jun 2008 21:34:01 +0000 (14:34 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 Jun 2008 21:34:01 +0000 (14:34 -0700)
src/kernel/dir.c

index 3cb236a6bf6158a4036f1e9c60e1f4d1544d4e06..92e39869e517417d72a47a9278573ed9391a0813 100644 (file)
@@ -319,13 +319,15 @@ struct dentry *ceph_do_lookup(struct super_block *sb, struct dentry *dentry,
 }
 
 static struct dentry *ceph_lookup(struct inode *dir, struct dentry *dentry,
-                                     struct nameidata *nd)
+                                 struct nameidata *nd)
 {
        dout(5, "dir_lookup in dir %p dentry %p '%.*s'\n",
             dir, dentry, dentry->d_name.len, dentry->d_name.name);
 
        /* open (but not create!) intent? */
-       if (nd && nd->flags & LOOKUP_OPEN &&
+       if (false && nd &&
+           (nd->flags & LOOKUP_OPEN) &&
+           (nd->flags & LOOKUP_CONTINUE) == 0 && /* only open last component */
            !(nd->intent.open.flags & O_CREAT)) {
                int mode = nd->intent.open.create_mode & ~current->fs->umask;
                int err = ceph_lookup_open(dir, dentry, nd, mode);