diff options
author | Benjamin Fleischer <fleiben@gmail.com> | 2012-01-20 09:22:54 +0100 |
---|---|---|
committer | Benjamin Fleischer <fleiben@gmail.com> | 2012-01-20 10:02:14 +0100 |
commit | b4023a19dd7ec7a099d2e0df491547cf3bb6bec3 (patch) | |
tree | 9181a610412c799c7815743eaf5ad3a21806bb27 /cache.c | |
parent | 49203ee923b2dcc8d4fd65c61b076e357c5e224d (diff) | |
download | sshfs-b4023a19dd7ec7a099d2e0df491547cf3bb6bec3.tar sshfs-b4023a19dd7ec7a099d2e0df491547cf3bb6bec3.tar.gz sshfs-b4023a19dd7ec7a099d2e0df491547cf3bb6bec3.tar.bz2 sshfs-b4023a19dd7ec7a099d2e0df491547cf3bb6bec3.zip |
Apply modified sshfs 2.2 patch from MacFUSE
Based on Amit Singh's work at http://code.google.com/p/macfuse/
Diffstat (limited to 'cache.c')
-rw-r--r-- | cache.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -559,6 +559,9 @@ struct fuse_operations *cache_init(struct fuse_cache_operations *oper) cache.next_oper = oper; cache_unity_fill(oper, &cache_oper); +#if __APPLE__ + cache_enabled = cache.on; +#endif if (cache.on) { cache_fill(oper, &cache_oper); pthread_mutex_init(&cache.lock, NULL); @@ -593,3 +596,7 @@ int cache_parse_options(struct fuse_args *args) return fuse_opt_parse(args, &cache, cache_opts, NULL); } + +#if __APPLE__ +int cache_enabled; +#endif |