Fix bug in caching which could cause file corruption for append mode writes

This commit is contained in:
Miklos Szeredi
2008-05-06 15:10:28 +00:00
parent 1a76a16bd9
commit 4b28b15c34
4 changed files with 63 additions and 14 deletions
+2 -1
View File
@@ -24,5 +24,6 @@ struct fuse_cache_operations {
struct fuse_operations *cache_init(struct fuse_cache_operations *oper);
int cache_parse_options(struct fuse_args *args);
void cache_add_attr(const char *path, const struct stat *stbuf);
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);