A Step by Step Introduction to Writing (or Undestanding) a Linux Filesystem
http://www.linuxsymposium.org/2006/view_abstract.php?content_key=252
I don't think that I will implement the real filesystem by myself, but as for virtual filesystem, this tuturial can be useful for the starting point.