A "wrapper" filesystem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to create a case insensitive "wrapper" filesystem (say 'casefs')
but I do not know enough about the internals to know where to intercept
things. I would really appreciate some pointers on how to get started.
I have read the variety of VFS documents but this seems like it demands
a deeper understanding (if it's possible at all).

The most optimistic solution I can think of would be to just create a
filesystem module that simply returned the super_block of an already 
mounted filesystem. Otherwise even if I create a casefs specific
super_block I don't think I want to start creating inodes as I really
want this to be a "wrapper" into another fs so I do not see why I would 
want to go lower than that correct?

So in casefs_read_super I would use get_fs_type of whatever type (passed 
as a module parameter perhaps) to get a file_system_type and enumerate
fs_supers to find the super_block of interest and just return that? Is it
safe to return the super_block of a mounted filesystem and what happens 
to the one allocated for casefs_read_super? Or will I need to create a
casefs specific superblock and selectively copy over the bits of interest?

Thanks,
Mike

-- 
A  program should be written to model the concepts of the task it
performs rather than the physical world or a process because this
maximizes  the  potential  for it to be applied to tasks that are
conceptually  similar and, more important, to tasks that have not
yet been conceived. 
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux