sara-nl / BeeHub

SURFsara's BeeHub File Sharing Service
http://beehub.nl/
8 stars 4 forks source link

Mount client aanpassen ivm local caching #219

Open niekbosch opened 10 years ago

niekbosch commented 10 years ago

The linux WebDAV mount client (package davfs2) caches files first in a local folder, and only when it has finished making a full copy of a file does it start uploading it to the server. This is a problem, becuse when we talk about research datasets, these can be so large that you may have no disk space to host both the original and the cached copy. Plus, this copy takes time and you may want to spend it uploading it rather than copying to your disk first.

a-surfer commented 10 years ago

The linux WebDAV mount client (package davfs2) caches files first in a local folder, and only when it has finished making a full copy of a file does it start uploading it to the server. This is a problem, becuse when we talk about research datasets, these can be so large that you may have no disk space to host both the original and the cached copy. Plus, this copy takes time and you may want to spend it uploading it rather than copying to your disk first.

Having a look at the code from https://savannah.nongnu.org/projects/davfs2 these days. Maybe we can figure out a way to include an option for the mount command to bypass the cache. The code is rather intertwined, but descriptive method names and comments abound.