*BSD News Article 82847


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!cs.utexas.edu!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!news3.cac.psu.edu!news.cse.psu.edu!news.cc.swarthmore.edu!netnews.upenn.edu!red.seas.upenn.edu!jowaxman
From: jowaxman@red.seas.upenn.edu (Jonathan A Waxman)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: vfs layer question
Date: 14 Nov 1996 22:52:32 GMT
Organization: University of Pennsylvania
Lines: 16
Message-ID: <56g7rg$pfi@netnews.upenn.edu>
NNTP-Posting-Host: red.seas.upenn.edu
X-Newsreader: TIN [version 1.2 PL2-upenn1.3]

I am attempting to write a new virtual file system layer.  It will be
descended directly from nullfs.  The only thing I have done so far is
changed all the symbols in the nullfs code and makefiles
(src/sys/miscfs/nullfs, src/lkm/nullfs, src/sbin/mount_nullfs) to a
new name.  I added the new fs to mount.h andcompiled the new fs (still
really nullfs) in an appropriate directory under lkm.  I installed the
kernel module and am able to load the kernel module for the fs into
memory when I run mount_fs.  However, whenthe call to mount(2) is made
I get "Operation not supported by device" (ENODEV).  I have not
changed a thing except for symbols and adding the new fs name to
mount.h.  Do I need to recompile anything else except the fs related
code?  Also where is the code to mount(2) in the sourcetree??  Any
help would be appreciated as I am *very* much a beginner at kernel
programming...

-jon