• 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: flushing HFS cache to disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: flushing HFS cache to disk


  • Subject: Re: flushing HFS cache to disk
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 30 Nov 2005 12:22:59 -0800

On 11/30/05, Dave Yost <email@hidden> wrote:
> At 01:32 PM -0800 2005-11-29, Mark Day wrote:
> >On Nov 29, 2005, at 12:03 PM, email@hidden wrote:
> >
> >>>that's what sync(2) does.
> >>
> >>It doesn't seem to.
> >
> >Beware that sync(2) is an asynchronous call.  It just begins the flushing of data to all volumes.  If you're reading the disk immediately, the changes may not have been written yet.
>
> Surely there should be a synchronous call one can use.

What happens after that synchronous call returns...? Are you expecting
it to lock out the file system from any other access?

It other words a synchronous call serves no purpose since at any
moment another thread can come along and modify the state of the file
system as long as it is mounted and writable.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: flushing HFS cache to disk
      • From: Dave Yost <email@hidden>
References: 
 >Re: flushing HFS cache to disk (From: Mark Day <email@hidden>)

  • Prev by Date: Re: flushing HFS cache to disk
  • Next by Date: Re: perl 5.8.1 issue on 10.3.9 server [ semi solved ]
  • Previous by thread: Re: flushing HFS cache to disk
  • Next by thread: Re: flushing HFS cache to disk
  • Index(es):
    • Date
    • Thread