From: Miklos S. <mi...@sz...> - 2012-08-03 17:48:47
|
"Richard W.M. Jones" <rj...@re...> writes: > Sorry that took longer than expected ... > > git bisect points to: > > c8ccbe032feb127a977c66865cb63d72d9a6e08b is the first bad commit Below patch should fix this particular fuse bug. There are various other create-mode related issues in the vfs that I can see. So will do a series that'll include this patch. Thanks, Miklos ---- diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 8964cf3..7c6c808 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -405,7 +405,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, memset(&inarg, 0, sizeof(inarg)); memset(&outentry, 0, sizeof(outentry)); inarg.flags = flags; - inarg.mode = mode; + inarg.mode = mode | S_IFREG; /* Userspace expects S_IFREG */ inarg.umask = current_umask(); req->in.h.opcode = FUSE_CREATE; req->in.h.nodeid = get_node_id(dir); |