aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2008-05-06 15:10:28 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2008-05-06 15:10:28 +0000
commit4b28b15c34f0969e47fbbfd81c4f63e6e6f16203 (patch)
tree85a493815cd22d9d41866081c1b0e2ec1e937386 /cache.h
parent1a76a16bd97f01c0bfcc022c1c317f6e5fad5a6e (diff)
downloadsshfs-4b28b15c34f0969e47fbbfd81c4f63e6e6f16203.tar
sshfs-4b28b15c34f0969e47fbbfd81c4f63e6e6f16203.tar.gz
sshfs-4b28b15c34f0969e47fbbfd81c4f63e6e6f16203.tar.bz2
sshfs-4b28b15c34f0969e47fbbfd81c4f63e6e6f16203.zip
Fix bug in caching which could cause file corruption for append mode writes
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 2 insertions, 1 deletions
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);