aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fscache/main.c
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2009-11-27 19:30:14 +0530
committerMiklos Szeredi <mszeredi@suse.cz>2009-11-27 16:37:13 +0100
commit1b7323965a8c6eee9dc4e345a7ae4bff1dc93149 (patch)
treee0f6708e1bb274a2204919dbcc698be5f5880f0c /fs/fscache/main.c
parentMerge branch 'i2c-pnx-fixes' of git://git.fluff.org/bjdooks/linux (diff)
downloadlinux-dev-1b7323965a8c6eee9dc4e345a7ae4bff1dc93149.tar.xz
linux-dev-1b7323965a8c6eee9dc4e345a7ae4bff1dc93149.zip
fuse: reject O_DIRECT flag also in fuse_create
The comment in fuse_open about O_DIRECT: "VFS checks this, but only _after_ ->open()" also holds for fuse_create, however, the same kind of check was missing there. As an impact of this bug, open(newfile, O_RDWR|O_CREAT|O_DIRECT) fails, but a stub newfile will remain if the fuse server handled the implied FUSE_CREATE request appropriately. Other impact: in the above situation ima_file_free() will complain to open/free imbalance if CONFIG_IMA is set. Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Harshavardhana <harsha@gluster.com> Cc: stable@kernel.org
Diffstat (limited to 'fs/fscache/main.c')
0 files changed, 0 insertions, 0 deletions