https://github.com/torvalds/linux
Revision 8d56addd70c7c0626502569e22cc8fce49ae39f5 authored by Miklos Szeredi on 25 February 2011, 13:44:58 UTC, committed by Miklos Szeredi on 25 February 2011, 13:44:58 UTC
Commit e1181ee6 "vfs: pass struct file to do_truncate on O_TRUNC
opens" broke the behavior of open(O_TRUNC|O_RDONLY) in fuse.  Fuse
assumed that when called from open, a truncate() will be done, not an
ftruncate().

Fix by restoring the old behavior, based on the ATTR_OPEN flag.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
1 parent 5a18ec1
History
Tip revision: 8d56addd70c7c0626502569e22cc8fce49ae39f5 authored by Miklos Szeredi on 25 February 2011, 13:44:58 UTC
fuse: fix truncate after open
Tip revision: 8d56add
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 941 bytes
.mailmap -rw-r--r-- 4.0 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 186.8 KB
Makefile -rw-r--r-- 50.9 KB
README -rw-r--r-- 17.1 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top