views:

43

answers:

1

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?

+1  A: 

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

Nathon
Thanks for your answer. Still haven't verified if it solves my problem yet, but I should at least point out that it's `-o cache=no` instead of NO, which causes an error.
OTZ
Odd. The man page for my copy of sshfs (2.2/FUSE 2.8.1/fusermount 2.8.1/FUSE kernel interface 7.12) says `-o cache=YESNO`. Anyway, fixed.
Nathon
The man page of sshfs is misleading in that it capitalizes all the option values when cap'ed values are invalid. Mine's: `-o cache=YESNO enable caching {yes,no} (default: yes)`
OTZ
Wow, nutty. Not as nutty as the docs I'm reading now, but still nutty.
Nathon