public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Writing new filesystem
@ 2003-02-25  8:36 Diksha B Bhoomi
  2003-02-25 17:14 ` Andy Isaacson
  0 siblings, 1 reply; 3+ messages in thread
From: Diksha B Bhoomi @ 2003-02-25  8:36 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Writing new filesystem
  2003-02-25  8:36 Writing new filesystem Diksha B Bhoomi
@ 2003-02-25 17:14 ` Andy Isaacson
  2003-02-25 21:51   ` Herman Oosthuysen
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Isaacson @ 2003-02-25 17:14 UTC (permalink / raw)
  To: Diksha B Bhoomi; +Cc: linux-kernel

On Tue, Feb 25, 2003 at 08:36:31AM -0000, Diksha B Bhoomi wrote:
> 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]
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Writing new filesystem
  2003-02-25 17:14 ` Andy Isaacson
@ 2003-02-25 21:51   ` Herman Oosthuysen
  0 siblings, 0 replies; 3+ messages in thread
From: Herman Oosthuysen @ 2003-02-25 21:51 UTC (permalink / raw)
  To: linux-kernel

  [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
> 

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-25 21:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-25  8:36 Writing new filesystem Diksha B Bhoomi
2003-02-25 17:14 ` Andy Isaacson
2003-02-25 21:51   ` Herman Oosthuysen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox