Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect mode, File Cache Size and Disable File Caching #5

Closed
wiserweb opened this issue May 4, 2014 · 2 comments
Closed

Reconnect mode, File Cache Size and Disable File Caching #5

wiserweb opened this issue May 4, 2014 · 2 comments

Comments

@wiserweb
Copy link
Contributor

wiserweb commented May 4, 2014

According to http://shfs.sourceforge.net/install.html

SHFS supports reconnect mode. Has this been tested with MegaFuse? Could this be workable method to ensure that endpoints are reconnected even when network conditions are unreliable?

To make mount survive temporary connection outage (reconnect mode):
shfsmount --persistent user@host /mnt/shfs

Additionally, could there be an ability to specify the cache size? It's not clear how the caching of MegaFuse and SHFS work together.

Longer transfers? Increase cache size (1MB cache per file):
shfsmount user@host /mnt/shfs -o cachesize=256

Finally, could there be the ability to disable caching when copying files to mount point when the file system doesn't have enough disk space. For example, copying a 15GB file to /megafs mount point would fail if only 10GB of space is remaining on the local disk. To avoid this condition MegaFuse could be started with -o cachesize=0 or similar operator to temporarily disable caching to enable large files to be copied or moved to /megafs mount point even if disk space is limited.

@matteoserva
Copy link
Owner

megafuse has nothing to do with shfs.
MegaFuse is a FUSE filesystem that uses MEGA sdk to transfer files.

In theory caching could be disabled since MEGA encrypts in counter mode,
but doing that would make MegaFuse so slow that it becomes unusable.

Right now the caching is very simple. MegaFuse caches everything.
In the future I'll add a cache pruning system that deletes the cache
for the least recently used files.

MegaFuse can recover from some network outages.
I'll probably make some improvements on this to make it
work on mobile networks too.

@omgbox
Copy link

omgbox commented Jul 17, 2015

I'll add a cache pruning system that deletes the cache

totally in need of this, remote disk 100gb, local disk 25gb, cant do much need to remove cache so often

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants