Search code examples
filesystemssolaris-10

Steps in developing your own File system in Solaris 10


I need to gather the steps I should ensure before writing own file system in Solaris. I have gone through several links for developing the file system in Linux which was quiet easy. But I could not find any related link in Solaris 10. May I get any help in that?


Solution

  • After looking into tmpfs code in illumos project, I got following ideas to write the file system. I had to write memory based file system like tmpfs, procfs, etc.

    Steps:

    1) Create a vfs switch table. Provide the required mount options, flags, fs initialization function, etc for your file system in switch table object.

    2) In file system initialization function, register the VFS and Vnode operations.

    3) Handle the registed VFS and Vnode functions.

    P.S. - This is very short story told above. You can look into tmpfs to write file systems in details.