• 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: How do I lock a volume the way First Aid does?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I lock a volume the way First Aid does?


  • Subject: Re: How do I lock a volume the way First Aid does?
  • From: Brendan Shanks <email@hidden>
  • Date: Sun, 26 Mar 2017 13:46:02 -0700

fsck_hfs (and the DFA lib which looks to date back to the 80s) is open source, you might find the mechanism there. 

https://opensource.apple.com/source/hfs/hfs-366.30.3/fsck_hfs/

Brendan

Sent from my iPhone

On Mar 26, 2017, at 12:14 PM, Thomas Tempelmann <email@hidden> wrote:

I am working on a tool that makes an image snapshot of a bootable HFS volume. If the volume can be unmounted, that's an easy task. But when it's the boot volume, this doesn't work, of course.

Now, I've seen that DFA in Sierra seems to be able to lock a volume so that it can verify and possibly repair it.

How does DFA do that? Is there some OS function I could use for that purpose, too?

--
Thomas Tempelmann, http://www.tempel.org/
Follow me on Twitter: https://twitter.com/tempelorg
Read my programming blog: http://blog.tempel.org/
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
References: 
 >How do I lock a volume the way First Aid does? (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: How do I lock a volume the way First Aid does?
  • Next by Date: Re: How do I lock a volume the way First Aid does?
  • Previous by thread: How do I lock a volume the way First Aid does?
  • Next by thread: Re: How do I lock a volume the way First Aid does?
  • Index(es):
    • Date
    • Thread