mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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
This commit is contained in:
commit
d0964c37b5
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue