diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2008-05-06 15:10:28 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-05-06 15:10:28 +0000 |
commit | 4b28b15c34f0969e47fbbfd81c4f63e6e6f16203 (patch) | |
tree | 85a493815cd22d9d41866081c1b0e2ec1e937386 /cache.h | |
parent | 1a76a16bd97f01c0bfcc022c1c317f6e5fad5a6e (diff) | |
download | sshfs-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |