Writing new filesystem
I am interested in writing a new filesystems. For that purpose I took thr src from msdos and tried to do the compiling. The Makefile in the msdos directory does not run. It gives the error that TOPDIR is not set. I set it ti /usr/src/linux so as to add the Rules.make but this time it gives the other errors. It compiles with cc and without seting the --KERNEL-- that leads to many errors. Now my question is that how do I compile the code which I have put in /usr/src/linux/fs/myfs the directory to hold the code for my new filesystems.
I tried to execute the make file from /usr/src/linux to create the new kernel but here again it does not take into account the new ly added dir. I then followed to make dep. In this it goes to myfs dir but no compiletion happens. It creates two files myfs.ver and myfs.ver but both of zero bytes. This means that gcc did not compile the code in myfs dir? What should I do now?
Diksha
Atta Dipa Bhava
Quoted 2 lines · Diksha B Bhoomi
I am interested in writing a new filesystems. For that purpose I took thr src from msdos and tried to do the compiling. The
[snip]
Quoted 3 lines
new kernel but here again it does not take into account the new ly added dir. I then followed to make dep. In this it goes to myfs dir but no compiletion happens. It creates two files myfs.ver and
[snip]
Look at fs/Makefile, search for "ext2", and add your new fs directory in the appropriate spots.
I would recommend using ext2 or something, rather than msdosfs, as your template. The DOS filesystem is crufty.
-andy
[snip]
Quoted 9 lines
Look at fs/Makefile, search for "ext2", and add your new fs directory in the appropriate spots.
I would recommend using ext2 or something, rather than msdosfs, as your template. The DOS filesystem is crufty.
-andy
I agree with above. Also, first look at the simplest fs, which is romfs. Then look at the oldest, which is minix and finally look at ext2. After that exercise, you'll know how it works.