Miklos Szeredi 8d56addd70 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>
2011-02-25 14:44:58 +01:00
..
2010-10-29 04:16:28 -04:00
2010-10-15 15:53:27 +02:00
2010-12-07 20:16:56 +01:00
2011-02-25 14:44:58 +01:00
2011-01-12 20:02:44 -05:00
2009-01-22 13:15:55 +03:00