Home
last modified time | relevance | path

Searched hist:"8 d56addd" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/fuse/
H A Ddir.c8d56addd Fri Feb 25 07:44:58 CST 2011 Miklos Szeredi <mszeredi@suse.cz> fuse: fix truncate after open

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>