From 4b28b15c34f0969e47fbbfd81c4f63e6e6f16203 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 6 May 2008 15:10:28 +0000 Subject: Fix bug in caching which could cause file corruption for append mode writes --- cache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 3a121fc..cec9ca4 100644 --- a/cache.h +++ b/cache.h @@ -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); -- cgit v1.2.3