Hi everyone,
I'm trying to implement my own virtual disk using a custom File System extension. As a starting point, I used this sample: https://github.com/KhaosT/FSKitSample.
I can successfully build and run the app. I also enabled the custom File System extension under System Settings → General → Login Items & Extensions.
However, I'm not sure how to proceed from there.
My goal is to mount the virtual disk so that it appears directly in Finder.
Currently, I am only able to mount it manually using Terminal commands, as shown in the sample:
hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount dummy # (this returns e.g. disk35)
mkdir /tmp/TestVol
mount -F -t MyFS disk35 /tmp/TestVol
While this technically mounts the volume, it does not show up in Finder, and I don't know how to make it visible there.
Could anyone please point me in the right direction?
What is the correct approach to have the mounted volume appear in Finder automatically?
Thanks in advance!
Topic:
App & System Services
SubTopic:
Core OS
Tags: