How do I program a logical volume on Mac OS X (possibly using OSXFuse?)

309 Views Asked by At

I'm writing a MacOSX application that requires a logical VFS to be presented to the user. Its files' contents are derived from the files stored on the native filesystem, but its file hierarchy and organisation (basically, the directories) are independent from the native file system.

I've seen two instances of this in the wild, really:

  1. I've come upon Disk Drill, neat piece of software that lets you scan a hard drive for (deleted) files and recover them. They let you mount files found as a VFS before copying any of those files out to a hard drive.

  2. Truecrypt lets the user view the contents of an encrypted 'vault' file after a password challenge by programmatically mounting volume, whose files are the decrypted file contents of the vault.

How do you programmatically mount a VFS whose implementation is given by my userland OSX application? I looked at OSXFuse and the front page at least seems to say it can do what I want. I'm targeting Mountain Lion or higher.

If any SO users can shine more light on this matter I'd highly appreciate it. Thank you.

0

There are 0 best solutions below