Re: Can I flush the cache for an AFP volume?
Re: Can I flush the cache for an AFP volume?
- Subject: Re: Can I flush the cache for an AFP volume?
- From: James Bucanek <email@hidden>
- Date: Tue, 14 Oct 2008 08:39:47 -0700
Quinn <mailto:email@hidden> wrote (Thursday, October 9,
2008 2:11 AM +0100):
At 11:30 -0700 25/9/08, James Bucanek wrote:
Lastly, if this will work what's the best way of determining
whether a volume is mounted remotely or via AFP?
MNT_LOCAL will be false for all network volumes.
f_fstypename is the best way to test for specific file system types. For AFP, it will be "afpfs".
Both are covered in <x-man-page://2/statfs>.
Thanks. That would help me if I could have avoided bug 5702911
by flushing the client-side disk cache for a networked volume.
But since it appears that I can't, the other workaround is to
not use mmap() on the *server*. For that, I need to know if the
folder containing the file is being shared by AFS. Is there any
easy/standard/public method for determining if a folder is
contained within an active file sharing point?
James
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden