joe42 / CloudFusion

Linux file system (FUSE) to access Dropbox, Sugarsync, Amazon S3, Google Storage, Google Drive or WebDAV servers.
http://joe42.github.com/CloudFusion/
288 stars 35 forks source link

Set Hard Limit for Cache Size #8

Closed joe42 closed 10 years ago

joe42 commented 11 years ago

The current cache size option configures the size of the cache that is used when there are files that are in sync with the data store. But when files are written successively, and they cannot be transfered to the data store as quickly, the cache grows without bounds, potentially until there is no space left on the local disc. This may lead to errors, and should thus be prevented by a hard limit for the cache. Instead of failing to write, which might interrupt backups, it would be better to slow down writes to a few bytes per second.