linux/fs/fuse
Ken Sumrall a0822c5577 fuse: fix attributes after open(O_TRUNC)
The attribute cache for a file was not being cleared when a file is opened
with O_TRUNC.

If the filesystem's open operation truncates the file ("atomic_o_trunc"
feature flag is set) then the kernel should invalidate the cached st_mtime
and st_ctime attributes.

Also i_size should be explicitly be set to zero as it is used sometimes
without refreshing the cache.

Signed-off-by: Ken Sumrall <ksumrall@android.com>
Cc: Anfei <anfei.zhou@gmail.com>
Cc: "Anand V. Avati" <avati@gluster.com>
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-25 06:50:41 +09:00
..
control.c convert get_sb_single() users 2010-10-29 04:16:28 -04:00
cuse.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
dev.c fuse: use release_pages() 2010-10-27 18:03:17 -07:00
dir.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 2010-08-10 11:26:52 -07:00
file.c fuse: fix attributes after open(O_TRUNC) 2010-11-25 06:50:41 +09:00
fuse_i.h
inode.c convert get_sb_nodev() users 2010-10-29 04:16:31 -04:00
Kconfig
Makefile