Skip to contentSkip to conversation

Access other file system's symbols

DISCUSSION johnpw 2 participants 2 messages Nov 7, 2005 – Nov 8, 2005

lore
Share & tools
lore

johnpw

author
#0 lore raw

Greetings,

I need to access some ext3 and nfs file system symbols from a new file system module we are developing. For example, the nfs_file_inode_operations and ext3_dir_inode_operations. What functions or mechanism in the kernel are available for doing that? Any suggestions and advice is appreciated.

John W.

#1 lore raw
Quoted 9 lines · johnpw

Greetings,

I need to access some ext3 and nfs file system symbols from a new file system module we are developing. For example, the nfs_file_inode_operations and ext3_dir_inode_operations. What functions or mechanism in the kernel are available for doing that? Any suggestions and advice is appreciated.

First question: Is your new file system going to be licensed under the GPL? If not, read no more. You shouldn't be trying.

I have to wonder why you want to do this. A file system usually provides its own inode_operations. If you are interested in a file system that sits on top of ext3 and/or nfs, you may be want to look at
FiST: http://www.filesystems.org/

Otherwise, it seems to be a bad idea to use another file system's code. The inode operations are specific to those file systems, and the developers won't be concerned about making changes that could break your file system.

If you really believe the code to be generic enough to be used outside of ext3 or nfs, the code could be moved to the vfs, and called from the individual file systems. See the code in fs/libfs.c for examples. I really don't think that the inode_operations for these file systems would fall into that category though.

Quoted 1 line

John W.

Signature · 2 lines
David Kleikamp
IBM Linux Technology Center