1234567891011121314151617181920212223 |
- /*
- Caching file system proxy
- Copyright (C) 2004 Miklos Szeredi <miklos@szeredi.hu>
- This program can be distributed under the terms of the GNU GPL.
- See the file COPYING.
- */
- #include <fuse.h>
- #include <fuse_opt.h>
- #define DEFAULT_CACHE_TIMEOUT_SECS 20
- #define DEFAULT_MAX_CACHE_SIZE 10000
- #define DEFAULT_CACHE_CLEAN_INTERVAL_SECS 60
- #define DEFAULT_MIN_CACHE_CLEAN_INTERVAL_SECS 5
- void cache_add_link(const char *path, const char *link, size_t size);
- struct fuse_operations *cache_wrap(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);
- uint64_t cache_get_write_ctr(void);
|