• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I flush the cache for an AFP volume?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Any way to get the count of open files?
      • From: "Trainor, Chris" <email@hidden>
References: 
 >Re: Can I flush the cache for an AFP volume? (From: Quinn <email@hidden>)

  • Prev by Date: Re: Can I flush the cache for an AFP volume?
  • Next by Date: Any way to get the count of open files?
  • Previous by thread: Re: Can I flush the cache for an AFP volume?
  • Next by thread: Any way to get the count of open files?
  • Index(es):
    • Date
    • Thread