hello_fuse is a trivial FUSE filesystem implementation use FUSE for macOS C-binding SDK.
This filesystem have only one regular file in the root directory, and grant O_RDONLY access only.
Code mainly taken from osxfuse/filesystems/filesystems-c/hello, used for learning purpose...
Simple make(1) let you build DEBUG version of hello_fuse, to build release version, please use release target.
mkdir mount_point
./hello_fs-debug mount_pointFor a full list of mount options, please specify --help for hello-debug
hello_fuse uses syslog(3) for logging, to see its output:
syslog -F '$((Time)(JZ)) $Host <$((Level)(str))> $(Sender)[$(PID)]: $Message' -w 0 -k Sender hello_fs-debugIf you uses release version, replace hello_fs-debug with hello_fs
You may alternatively use Console.app to filter out logs issued by hello_fs[-debug], since syslog(1) is buggy in macOS.
umount mount_point-
Use new
os_log(3)API for macOS >= 10.12 -
Add more files(of different types, contents, attributes) to explore FUSE for macOS