Date: Wed, 1 Oct 1997 23:49:44 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: sauce@cs.columbia.edu (Alex Shender) Cc: fs@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: kernel modules Message-ID: <199710012349.QAA22980@usr04.primenet.com> In-Reply-To: <199710010450.AAA12529@guppy.cs.columbia.edu> from "Alex Shender" at Oct 1, 97 00:50:44 am
next in thread | previous in thread | raw e-mail | index | archive | help
> I was wondering if any of you have written any filesytems as kernel > modules. If so can you send me a pointer to the code. I am currently > developing a filesystem for linux and Solaris and would like to port it to > FreeBSD and would really appreciate it, if I could do it as a module. Look in the source tree. NFS and several other FS's can be loaded as modules. When I wrote the initial module code, I converted procfs as my example. The initialization code in the FS is a bit bogus: if you need to add new VOP_* calls, you will need to recompile the kernel anyway. This is because of the fact that the number of VOP entries is counted from the UFS_VNOPS table instead of the actual number of VOPS_* calls defined in vnode_if.c, and the vnode_if.c (a generated file) is not padded at all to allow growth. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710012349.QAA22980>