lkml.org 
[lkml]   [2001]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: How VFS interacts with a file driver
Date
On Monday 14 May 2001 07:29, Blesson Paul wrote:
> Hi
> I am trying to implement a distributed file system.
> For that I write a file driver. I want to know the following things
>
> 1 . If I am writing a new file system, is it necessary to modify the
> existing structs including inode struct.
> 2 . If it is not needed, will a simple registration of the file
> system is needed to mount the file system
> More over I am new to this area. I am doing as my
> graduate project. I need someones help to crack the working of VFS
> Thanks in advance

1. In .config, change CONFIG_EXT2_FS to 'm'
2. change "ext2" to "newfs" at DECLARE_FSTYPE_DEV in super.c
3. make modules SUBDIRS=fs/ext2
4. insmod fs/ext2/ext2.o

Poof! New filesystem. (cat /proc/filesystems) Don't forget to change
ext2 in .config back to "y" before you build your next kernel. You'll
need to study the kernel *hard* before you can expect to have half a
chance of having your filesystem work properly. Go here:

http://lksr.org

and here:

http://kernelnewbies.org

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:53    [W:0.084 / U:5.388 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site