Greetings! I've successfully converted the nullfs driver into fully working kext. I have also stripped out a lot of the nullfs functionality, but retained some code that keeps the driver functional (i.e. can be mounted, cd'd into, ls'd, unmounted..) Now I want to take this code to the next level. I have 2 projects, one is for the company I work for, and the other is to pop up a filesystem for the MP3 player on a cell phone (Samsung SCH-M200). Is anyone able to point me to references describing how to implement each of the required vfs and vops? I think a very educational next move for me is to return a custom root node, with a few entries, each of which have artificial nodes and contents themselves, all initialized with hardcoded data. An example session might look like: box:~ root# cd /mnt box:/mnt root# ls -alF total XX drwxrwxr-x 2 root admin 1024 Jul 4 11:02 point box:/mnt root# mount -t myfs /mnt/point # highly construed arguments, exemplary only :D box:/mnt root# cd point box:/mnt/point root# ls -alF total XX drwxr-xr-x XX root staff 1024 Jul 8 09:34 ./ drwxr-xr-x XX root wheel 1024 Jun 28 10:28 ../ -rwxrwxr-x XX root admin 42 Jul 4 11:02 retract.c -rwxr-x--- XX ty staff 12 Jul 4 11:02 head.txt -rwx------ XX root admin 270 Jul 4 11:02 turtle.c box:/mnt/point root# cat head.txt Sample text box:/mnt/point root# I would very much appreciate some relevant code sections to get something like this working, and I think I can piece together the rest of the system through the debugging output and other FS code that already exists in the kernel sources.. Thank you very much for your help and time :D Ty _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
ty