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 <demon@now.ai> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
parent
4273b793ec
commit
0a2da9b2ef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue