You are not logged in.

#1 2015-10-26 22:02:54

Moviuro
Member
Registered: 2012-06-03
Posts: 74

Network mount point: avoid hang on network failure

Hi all!

I'm looking for a network mount point/system/FS/whatever that doesn't block on network failures: here is how I want the mount point to behave:

$ ls /mnt/remote
<OK, lots of stuff here>
...
$
<Unplug the cable, kill the wifi, make the mountpoint unavailable>
$ ls /mnt/remote
<instantaneously either fail OR display an empty directory>

The most crucial point in this is instantaneous failure. I do not want a solution that freezes my computer, as it completely sabotages the user experience).

If there is something like that out there, I'm all ears.
I don't care at all for the internals of the solution. I only want a perfectly working solution that gives a good user experience
I read (but not yet tested) : sshfs and soft NFS.

Best regards,

Last edited by Moviuro (2015-10-27 12:31:42)


bspwm, BTRFS over LUKS
Archlinux a lot, FreeBSD more and more...
Murphy's rule: The day you need a backup, you tell yourself you should have created some.

Offline

#2 2015-10-30 19:25:36

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Network mount point: avoid hang on network failure

I have experienced this too and I have not found a solution. I believe a solution is not easy, I think the system cannot make a difference between a network that do not respond and a network that will respond.  Knowing that a resource do not respond is not instantaneous. IWe would have to look at a possible timeout option, but it probably depends on the specific way the directory is mounted...(smb, nfs, sshfs, ...)

Last edited by olive (2015-10-30 19:25:55)

Offline

Board footer

Powered by FluxBB