]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: fuse: add time_gran to INIT_OUT
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 28 Apr 2014 12:19:23 +0000 (14:19 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 28 Apr 2014 12:19:23 +0000 (14:19 +0200)
commit34a51ac0bc12d49089a2d9de45945dd45dd17d6d
tree5313ae3779a436d92b042c7584986c1f6f06afd4
parent720bd52e5cd1feab5926f9d0b3bb156c776264ba
fuse: fuse: add time_gran to INIT_OUT

Allow userspace fs to specify time granularity.

This is needed because with writeback_cache mode the kernel is responsible
for generating mtime and ctime, but if the underlying filesystem doesn't
support nanosecond granularity then the cache will contain a different
value from the one stored on the filesystem resulting in a change of times
after a cache flush.

Make the default granularity 1s.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/inode.c
include/uapi/linux/fuse.h