From: Miklos Szeredi Date: Wed, 11 Apr 2012 09:45:06 +0000 (+0200) Subject: fuse: allow nanosecond granularity X-Git-Tag: v3.4-rc4~28^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a2da9b2ef2ef76c09397597f260245b020e6522;p=profile%2Fivi%2Fkernel-x86-ivi.git fuse: allow nanosecond granularity Derrik Pates reports that an utimensat with a NULL argument results in the current time being sent from the kernel with 1 second granularity. Reported-by: Derrik Pates Signed-off-by: Miklos Szeredi --- diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 64cf8d0..c9a0c97 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -947,6 +947,7 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent) sb->s_magic = FUSE_SUPER_MAGIC; sb->s_op = &fuse_super_operations; sb->s_maxbytes = MAX_LFS_FILESIZE; + sb->s_time_gran = 1; sb->s_export_op = &fuse_export_operations; file = fget(d.fd);