Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to eliminate time lag with sshfs?

If I rsync a directory with some remote directory under an sshfs management, even if the rsync process finishes synching the directory contents, there seems to be a time lag for the sshfs directory to get updated. It is unintuitive and makes some automation process relying on sshfs contents unstable.

How do I eliminate the lag?

like image 442
OTZ Avatar asked Sep 08 '10 19:09

OTZ


1 Answers

-o cache=no in your sshfs options will turn off caching.


Note: no should be lower case: -o cache=NO should give you an error!

like image 93
nmichaels Avatar answered Sep 19 '22 06:09

nmichaels