diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-06 18:34:57 +0100 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-04-06 18:34:57 +0100 |
commit | 1552b467fcd7751360299c5139382d78538e12b3 (patch) | |
tree | 157c065aeeee995ce35547da8bf60259d1b9e770 /include | |
parent | 4ae58ffd9b149cc3d7aeea72d4d51248a77af39b (diff) | |
download | libfuse-1552b467fcd7751360299c5139382d78538e12b3.tar.gz |
Add support for in-kernel readdir caching.
Fixes: #394.
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse_common.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h index 5cf9fee..823a37d 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -55,9 +55,11 @@ struct fuse_file_info { /** Can be filled in by open, to use direct I/O on this file. */ unsigned int direct_io : 1; - /** Can be filled in by open, to indicate that currently - cached file data (that the filesystem provided the last - time the file was open) need not be invalidated. */ + /** Can be filled in by open. It signals the kernel that any + currently cached file data (ie., data that the filesystem + provided the last time the file was open) need not be + invalidated. Has no effect when set in other contexts (in + particular it does nothing when set by opendir()). */ unsigned int keep_cache : 1; /** Indicates a flush operation. Set in flush operation, also @@ -74,8 +76,14 @@ struct fuse_file_info { May only be set in ->release(). */ unsigned int flock_release : 1; - /** Padding. Do not use*/ - unsigned int padding : 27; + /** Can be filled in by opendir. It signals the kernel to + enable caching of entries returned by readdir(). Has no + effect when set in other contexts (in particular it does + nothing when set by open()). */ + unsigned int cache_readdir : 1; + + /** Padding. Reserved for future use*/ + unsigned int padding : 26; /** File handle id. May be filled in by filesystem in create, * open, and opendir(). Available in most other file operations on the |