Skip to content

leiless/hello_fuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello_fuse - A hello FUSE for macOS filesystem implementation

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...

Compile

Simple make(1) let you build DEBUG version of hello_fuse, to build release version, please use release target.

Mount hello_fuse

mkdir mount_point
./hello_fs-debug mount_point

For a full list of mount options, please specify --help for hello-debug

Capture logs issued by hello_fuse

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-debug

If 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.

Unmount hello_fuse

umount mount_point

TODO

  • Use new os_log(3) API for macOS >= 10.12

  • Add more files(of different types, contents, attributes) to explore FUSE for macOS

References

osxfuse/filesystems/filesystems-c/hello

libfuse/example/hello.c

libfuse/example/hello_ll.c

About

Hello file system(FUSE for macOS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors