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

force mounted filesystem to update contents #45

Closed
jeremybundgaard opened this issue Feb 13, 2017 · 2 comments
Closed

force mounted filesystem to update contents #45

jeremybundgaard opened this issue Feb 13, 2017 · 2 comments
Labels

Comments

@jeremybundgaard
Copy link

I typically work on a remote cluster (linux) and sshfs mount a drive on my mac. I then ssh into the remote system and run commands that generate analysis plots that I view locally on my mac. The time between when the file are created on the remote cluster and when they appear in finder for viewing can take any where from 10s of seconds to minutes.

I currently mount via
-o Compression=no,follow_symlinks,auto_cache,reconnect,defer_permissions,noappledouble,volname=foo

Are there any terminal commands on either my client or server that force the sshfs mount to reload/refresh/update the remote filesystem content?

Please answer this question directly without offering other mount options. I'm specifically wanting to find a command that I can run that "forces" the sshfs mount to update. Thanks!

@Nikratio
Copy link
Contributor

Nikratio commented Jun 1, 2017

There is no such command, sorry.

@Hello1024
Copy link

For anyone finding this later...

You can unmount and remount to clear any caches and see a fresh version of the remote system. Automate it with a script and assign a hotkey and it becomes easy. Downside: Any open files will break.

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

No branches or pull requests

3 participants