]> err.no Git - linux-2.6/commit
fuse: pass open flags to read and write
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 29 Nov 2007 00:22:00 +0000 (16:22 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 29 Nov 2007 17:24:54 +0000 (09:24 -0800)
commita6643094e73247c1ebd36816f494f631fa7be348
tree11ba2e666b6fea1cdf579616d6a04b0afd24f61c
parent7dca9fd39f7d4605ac178a67bb1772381056917d
fuse: pass open flags to read and write

Some open flags (O_APPEND, O_DIRECT) can be changed with fcntl(F_SETFL, ...)
after open, but fuse currently only sends the flags to userspace in open.

To make it possible to correcly handle changing flags, send the
current value to userspace in each read and write.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.h
include/linux/fuse.h