patches for FreeBSD 6.0-RELEASE

Rick C. Petty rick-arla at kiwi-computer.com
Fri Dec 9 00:56:10 CET 2005


Since there no longer is an Arla port maintainer for the FreeBSD ports
tree, I'm hoping there is somebody on this list who can help.  My goal
is to get Arla working for FreeBSD 6.0-RELEASE.

The first step was to patch arla-0.41 until everything would build in
6.0.  I *finally* have a set of patches against the FreeBSD port (they
should apply cleanly against the arla source) which lets it compile.

Unfortunately my experience with VFS isn't extremely high, particularly
with respect to the changes to the FreeBSD 6.x VFS API/infrastructure
(circa Dec 2004 - Jan 2005) which are not reflected in the man pages.
Because of this, I have doubts with some of my patches and I'd like to
have more experienced eyes review them.

I can load/unload the nnpfs module just fine.  If I unload the module
with arlad running, the kernel panics (page fault).  When trying to
"mount_nnpfs /dev/nnpfs0 /afs", I get the following error (w/ debug):

nnpfs_mount: struct mount mp = c19e3c00 path = '/afs' data = '(null)'

Then the kernel panics with trap 12: page fault in kernel mode.  The
panic actually happens in line 107 of nnpfs/bsd/nnpfs_vfsops-common.c
inside nnpfs_mount_common_sys(), which is:

	error = namei(ndp);

What concerns me is that I passed in NULL for "data" because I wasn't
sure where to pull it out of the "struct mount *" passed into my code
for nnpfs_mount_freebsd() inside nnpfs/bsd/nnpfs_vfsops-freebsd.c.

I would really appreciate if someone could take a look at my patches
and help me out a bit!  I have a dedicated 6.0 box for testing and a
desire to get this stable in FreeBSD 6.0.

[attached: patches against arla-0.41 specifically for 6.0-RELEASE]

-- Rick C. Petty

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gta00000.gtar
Type: application/octet-stream
Size: 8142 bytes
Desc: "arla41-freebsd6.tgz"
Url : http://lists.stacken.kth.se/pipermail/arla-drinkers/attachments/00000000/64cad2f3/gta00000.obj


More information about the Arla-drinkers mailing list