On Jun 2, 11:32 am, Thierry <[EMAIL PROTECTED]> wrote:
> Still, I think there should be a way to force a refresh on the full
> volume or a single directory without disabling the cache completely.
> Like we can do using a ssh client (like Cyberduck).
> Do you think it is something that can be possible?

You seem to be under the impression that a file system is like a
typical sftp client. That's not the case *at all*, even if from the
end user's standpoint, sshfs and a typical sftp client might seem to
serve the same very-high-level purpose. A file system has to play by
certain rules in the operating system.

Besides, "the cache" in this case isn't MacFUSE's personal cache--we
are talking about the operating system's unified buffer cache.
Directories aren't buffer cached in the kernel. Regular files are.
Your statement about "refreshing a directory" isn't applicable.

Now, MacFUSE actually does allow a user-space file system to purge
individual files' buffer cache in the kernel. The user-space file
system still needs to figure out when something gets updated on the
"remote" side, and then needs to tell MacFUSE about it. Unlike your
GUI ssh client example, this isn't exactly simple or even desirable
always: you are not just "refreshing" a window's view; you are
changing system-wide information. The file in question may be open
multiple times; it may be in the process of being read from or written
to; it could be locked; and so on. The remote "update" could be of
many types too: besides simply being written to, the file could have
just been deleted; it could have been recreated; it could even have
been reincarnated with a different type (was a file, now is a
directory). Reconciling all of this in a real file system is quite
involved, not just for MacFUSE, but also for the user-space file
system. There isn't always a good resolution even. SFTP isn't a real
file system protocol, and such reconciliation isn't implemented in
sshfs.

Amit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to macfuse-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to