• 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: "Timothy J. Wood" <email@hidden>
  • Date: Wed, 30 Nov 2005 14:35:23 -0800


On Nov 30, 2005, at 1:53 PM, Peter Bierman wrote:
But all the filesystem operations _do_ have transactional semantics.

The issue here is that someone is trying to read from the disk _behind the back_ of the filesystem. There is NO provision for that while the filesystem is in use.

They have transactional semantics in that each individual operation is atomic, but they don't in that you can't group fs operations into a transaction. Imagine some new syscalls:


	fs_begin_transaction(xxx);
	{
		... do stuff ...
	}
	fs_{commit,rollback}_transaction();

In this particular case, you'd like 'xxx' to specify "don't show me writes made by other processes", but a mode where you can prevent your changes from becoming visible until you commit would be very useful too (say, if you want to create two files and have them show up atomically).

Obviously there are a whole ton of design issues with doing this, problems this couldn't solve, and filesystems where this couldn't be implemented easily (if at all).

-tim

_______________________________________________
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>)
 >Re: flushing HFS cache to disk (From: Shawn Erickson <email@hidden>)
 >Re: flushing HFS cache to disk (From: Dave Yost <email@hidden>)
 >Re: flushing HFS cache to disk (From: Peter Bierman <email@hidden>)

  • Prev by Date: Re: Determining the canonical case for a file name on HFS+
  • Next by Date: Re: missing project archive needed.
  • Previous by thread: Re: flushing HFS cache to disk
  • Next by thread: Re: flushing HFS cache to disk
  • Index(es):
    • Date
    • Thread