You are not logged in.

#1 2010-07-09 18:52:08

Rouslan Nabioullin
Member
Registered: 2008-12-23
Posts: 5

sshfs Freezes Applications

sshfs works perfectly until a connection drops, after which all apps that have the mounted dir open freeze indefinitely, until I kill -9 sshfs; fusermount -u (even with the lazy unmount option) does not work. Is there a way to impose some sort of timeout rather than writing a separate script just to kill -9 sshfs and remount?

Offline

#2 2010-07-09 20:35:11

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: sshfs Freezes Applications

try this:

/etc/ssh/ssh_config

ServerAliveInterval 15

then call sshfs with the reconnect parameter:

% sshfs -oreconnect user@host:/ /path

ᶘ ᵒᴥᵒᶅ

Offline

#3 2010-07-09 21:25:26

Rouslan Nabioullin
Member
Registered: 2008-12-23
Posts: 5

Re: sshfs Freezes Applications

Thanks! Although I still have to kill -9 sshfs if I am disconnecting from the network (intentionally), it does reconnect without issue, in case the connection experiences transient drops. I now have to make sure that the dir is not accessed by any program when I disconnect from the network.

Offline

#4 2010-07-09 21:42:22

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: sshfs Freezes Applications

You can fusermount -u before you disconnect from the network, thus saving yourself the "killall -9 sshfs".

Offline

Board footer

Powered by FluxBB