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 <tempelm...@gmail.com> 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 (Filesystem-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/filesystem-dev/brendan%40bslabs.net > > This email sent to bren...@bslabs.net
_______________________________________________ Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list (Filesystem-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/filesystem-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com