diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-06-21 10:59:13 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-07-08 00:34:01 +0200 |
commit | c711bf738f7e78ecb05acc6097088ea07646d3c0 (patch) | |
tree | 91502ee0e1305d11f939a633bda0ed8142b412f7 /cache.h | |
parent | 493081e8f64c3fedb430704485aebbe32edf8ac1 (diff) | |
download | sshfs-c711bf738f7e78ecb05acc6097088ea07646d3c0.tar sshfs-c711bf738f7e78ecb05acc6097088ea07646d3c0.tar.gz sshfs-c711bf738f7e78ecb05acc6097088ea07646d3c0.tar.bz2 sshfs-c711bf738f7e78ecb05acc6097088ea07646d3c0.zip |
Re-enabled cache support.
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -9,16 +9,7 @@ #include <fuse.h> #include <fuse_opt.h> -typedef struct fuse_cache_dirhandle *fuse_cache_dirh_t; -typedef int (*fuse_cache_dirfil_t) (fuse_cache_dirh_t h, const char *name, - const struct stat *stbuf); - -struct fuse_cache_operations { - struct fuse_operations oper; - int (*cache_getdir) (const char *, fuse_cache_dirh_t, fuse_cache_dirfil_t); -}; - -struct fuse_operations *cache_init(struct fuse_cache_operations *oper); +struct fuse_operations *cache_init(struct fuse_operations *oper); int cache_parse_options(struct fuse_args *args); void cache_add_attr(const char *path, const struct stat *stbuf, uint64_t wrctr); void cache_invalidate(const char *path); |