diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-11-30 14:00:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-11-30 14:00:09 -0800 |
commit | d0964c37b539c2b76752b1ff8b0a618c5f82f077 (patch) | |
tree | bcfce130d8a2462ebbad14000c53943929511c23 /fs | |
parent | ff961c68b140fc99946b94b7dbed8cd1f1333ff4 (diff) | |
parent | 1b7323965a8c6eee9dc4e345a7ae4bff1dc93149 (diff) | |
download | linux-d0964c37b539c2b76752b1ff8b0a618c5f82f077.tar.gz linux-d0964c37b539c2b76752b1ff8b0a618c5f82f077.tar.bz2 linux-d0964c37b539c2b76752b1ff8b0a618c5f82f077.zip |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
fuse: reject O_DIRECT flag also in fuse_create
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fuse/dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 8ada78aade58..4787ae6c5c1c 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -385,6 +385,9 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode, if (fc->no_create) return -ENOSYS; + if (flags & O_DIRECT) + return -EINVAL; + forget_req = fuse_get_req(fc); if (IS_ERR(forget_req)) return PTR_ERR(forget_req); |