From 57a93b3dacbf9259178dacff5d2fbb25427f3b86 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 15 Jul 2014 17:11:08 +0200 Subject: libfuse: add "time_gran" option This allows the filesystem to specify the time granularity it supports when the kernel is responsible for updating times ("writeback_cache" option). --- include/fuse_common.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/fuse_common.h') diff --git a/include/fuse_common.h b/include/fuse_common.h index 22d9591..aec4349 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -189,10 +189,18 @@ struct fuse_conn_info { */ unsigned congestion_threshold; + /** + * Time granularity if kernel is responsible for setting times (in nsec) + * + * Should be power of 10. A zero (default) value is equivalent to + * 1000000000 (1sec). + */ + unsigned time_gran; + /** * For future use. */ - unsigned reserved[23]; + unsigned reserved[22]; }; struct fuse_session; -- cgit v1.2.3