Hi,

I am working on a MacFUSE remote filesystem. As the file system is
remote and can be shared remote changes happen behind the back of the
filesystem that need to be reflected in the Finder. This is where I am
getting a bit confused.

So what is happening? I start with an empty volume created with the
auto_cache option. During the normal course of events of a file
appears from the remote end (behind the filesystem's back). If I look
in the terminal (ls) the file is there as I would expect. The Finder
has no clue as to what is going on - not unreasonable. If in the
terminal I run touch the finder still knows nothing (I would have
thought this would have prompted the event to be sent and the finder
to spring into life) but the date changes as you would expect. As I
can see by checking in the terminal.

So my question is, on a volume with the auto_cache what should I do to
get the correct notification to be sent to the finder that a new file
has come into existence? What I am thinking is that I know that a file
has come into existence I just need to let the finder know, is there
some way that I can tickle the file system (I know the file that has
sprung into life, or has been deleted) that will trigger the
auto_cache to magically do this for me?

Having failed with the auto_cache I have been looking at
fuse_purge_np. I know that it is not recommended but - if I could get
it to do the job it would be an option. I can not get it to work - I
am sure that this is a failing on my part but I can't see what I am
doing wrong.

My volume is mounted as /Volumes/MyTest
The new file that has "sprung" into existence lives at /Volumes/MyTest/
NewFile.txt

So I call:
fuse_purge_np("/Volumes/MyTest", "/Volumes/MyTest/NewFile.txt", NULL);

the return value is always 2 (ENOENT)

But in the terminal the file is there and does exist - so my guess is
I have got my understanding of things pickled.

Best regards

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

Reply via email to