* Developing a filesystem
@ 2005-07-08 10:14 Guillermo López Alejos
2005-07-08 10:30 ` Pekka Enberg
2005-07-08 10:35 ` Erik Mouw
0 siblings, 2 replies; 3+ messages in thread
From: Guillermo López Alejos @ 2005-07-08 10:14 UTC (permalink / raw)
To: Linux Kernel mailing list
Hi,
As I anounced a couple of weeks ago, I'm studying how to build a new
filesystem. I have taken a look at the ramfs and also read some
documentation about.
Now I'm writing my own dummyfs (based on ramfs) to know how this
works, but I'm having problems compiling it; I need to include the
"linux/fs.h" header file to have access to some structures definitions
(such as struct file_system_type), but this is giving me some errors.
So I think that I have to integrate my code with the kernel sources to
make it compile.
Therefore, my question is, is there any way to check wheter my code
compiles or not without having to integrate it with the kernel code?
If not, is there any tutorial to learn how to integrate a filesystem
into the Linux kernel code?
Thanks you,
--
Guillermo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Developing a filesystem
2005-07-08 10:14 Developing a filesystem Guillermo López Alejos
@ 2005-07-08 10:30 ` Pekka Enberg
2005-07-08 10:35 ` Erik Mouw
1 sibling, 0 replies; 3+ messages in thread
From: Pekka Enberg @ 2005-07-08 10:30 UTC (permalink / raw)
To: Guillermo López Alejos; +Cc: Linux Kernel mailing list
On 7/8/05, Guillermo López Alejos <glalejos@gmail.com> wrote:
> Hi,
>
> As I anounced a couple of weeks ago, I'm studying how to build a new
> filesystem. I have taken a look at the ramfs and also read some
> documentation about.
>
> Now I'm writing my own dummyfs (based on ramfs) to know how this
> works, but I'm having problems compiling it; I need to include the
> "linux/fs.h" header file to have access to some structures definitions
> (such as struct file_system_type), but this is giving me some errors.
> So I think that I have to integrate my code with the kernel sources to
> make it compile.
>
> Therefore, my question is, is there any way to check wheter my code
> compiles or not without having to integrate it with the kernel code?
> If not, is there any tutorial to learn how to integrate a filesystem
> into the Linux kernel code?
1. Example Makefile for an out-of-tree filesystem:
http://cvs.sourceforge.net/viewcvs.py/v9fs/linux-9p/Makefile?rev=2.0&view=auto
2. Putting it into the kernel:
cat fs/ramfs/Makefile
grep -i ramfs fs/Kconfig
Pekka
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Developing a filesystem
2005-07-08 10:14 Developing a filesystem Guillermo López Alejos
2005-07-08 10:30 ` Pekka Enberg
@ 2005-07-08 10:35 ` Erik Mouw
1 sibling, 0 replies; 3+ messages in thread
From: Erik Mouw @ 2005-07-08 10:35 UTC (permalink / raw)
To: Guillermo López Alejos; +Cc: Linux Kernel mailing list
On Fri, Jul 08, 2005 at 12:14:56PM +0200, Guillermo López Alejos wrote:
> Now I'm writing my own dummyfs (based on ramfs) to know how this
> works, but I'm having problems compiling it; I need to include the
> "linux/fs.h" header file to have access to some structures definitions
> (such as struct file_system_type), but this is giving me some errors.
> So I think that I have to integrate my code with the kernel sources to
> make it compile.
Have a look at http://lwn.net/Articles/21823/ "Compiling external
modules".
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-08 10:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-08 10:14 Developing a filesystem Guillermo López Alejos
2005-07-08 10:30 ` Pekka Enberg
2005-07-08 10:35 ` Erik Mouw
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.