Hugo Meiland | 1 May 2006 13:52
Picon

Arla-0.42 on OpenBSD-3.9

Hi all,

Today OpenBSD 3.9 has been released, and I took some time to check Arla-0.42
on it... It seems the openbsd guys did make some changes again:

- vprint() is no longer available, this is called once in
nnpfs/bsd/nnpfs_message.c on line 441, I just made a NNPFSDEBUG from it,
since the code will panic afterwards anyway...

- uintptr_t has been removed; while config still finds this as a working
feature; by removing the HAVE_UINTPTR_T define in include/config.h the
source redefine uintptr_t as a unsigned long and compile cleanly.

After this, it seems the code is functioning as normal...

... And they both have been modified a few days ago in -current...

Thanks!!

Hugo
Todd T. Fries | 1 May 2006 17:46

Re: Arla-0.42 on OpenBSD-3.9

Hey Hugo,

I'm on the other side of the fence.  I'm an OpenBSD developer and I've never
setup arla outside of what is included in the OpenBSD /usr/src tree.  Could
you offer me a cluebit on how I might go about doing this?

I'd like to do it so that I can test the latest arla release and hopefully
integrate it into OpenBSD in time for the upcoming 4.0 release.

Thanks for any pointers.

On Monday 01 May 2006 06:52, Hugo Meiland wrote:
> Hi all,
>
> Today OpenBSD 3.9 has been released, and I took some time to check
> Arla-0.42 on it... It seems the openbsd guys did make some changes again:
>
> - vprint() is no longer available, this is called once in
> nnpfs/bsd/nnpfs_message.c on line 441, I just made a NNPFSDEBUG from it,
> since the code will panic afterwards anyway...
>
> - uintptr_t has been removed; while config still finds this as a working
> feature; by removing the HAVE_UINTPTR_T define in include/config.h the
> source redefine uintptr_t as a unsigned long and compile cleanly.
>
> After this, it seems the code is functioning as normal...
>
> ... And they both have been modified a few days ago in -current...
>
> Thanks!!
(Continue reading)

Hugo Meiland | 1 May 2006 18:52
Picon

[Fwd: Re: Arla-0.42 on OpenBSD-3.9]


forwarding to list....

> 
> I'm on the other side of the fence.  I'm an OpenBSD developer and I've never
> setup arla outside of what is included in the OpenBSD /usr/src tree.  Could
> you offer me a cluebit on how I might go about doing this?
> 
> I'd like to do it so that I can test the latest arla release and hopefully
> integrate it into OpenBSD in time for the upcoming 4.0 release.
> 
> Thanks for any pointers.
> 

Hi Todd,

Great hearing from you!! Upgrading the OpenBSD version is on my hotlist
as well, I've been in contact with Bob Beck on this and hopefully meet
him and some others next week on BSDCan to discuss it a bit...

 From what I see, the difference between the OpenBSD version of Arla and
the latest release is not huge, apart from the weird /nnpfs/xfs/ and
/arlad/afsd/ name mangling (I haven't found any records of this
discussion with Theo, do you know if/where i can find that??)

the following snippet is from my paper which I present at BSDCan next
week (and tested today on 3.9):

The 0.42 release from Arla has been tested on OpenBSD 3.8, to run
correctly in 3.9 you will have to check out -current form cvs:
(Continue reading)

Todd T. Fries | 1 May 2006 19:39

Re: [Fwd: Re: Arla-0.42 on OpenBSD-3.9]

Thanks for the pointers.

I doubt that OpenAFS will ever make it into the base system.

However, checkout ports/net/openafs .. I use it myself at home on OpenBSD.

On Monday 01 May 2006 11:52, Hugo Meiland wrote:
> forwarding to list....
>
> > I'm on the other side of the fence.  I'm an OpenBSD developer and I've
> > never setup arla outside of what is included in the OpenBSD /usr/src
> > tree.  Could you offer me a cluebit on how I might go about doing this?
> >
> > I'd like to do it so that I can test the latest arla release and
> > hopefully integrate it into OpenBSD in time for the upcoming 4.0 release.
> >
> > Thanks for any pointers.
>
> Hi Todd,
>
> Great hearing from you!! Upgrading the OpenBSD version is on my hotlist
> as well, I've been in contact with Bob Beck on this and hopefully meet
> him and some others next week on BSDCan to discuss it a bit...
>
>  From what I see, the difference between the OpenBSD version of Arla and
> the latest release is not huge, apart from the weird /nnpfs/xfs/ and
> /arlad/afsd/ name mangling (I haven't found any records of this
> discussion with Theo, do you know if/where i can find that??)
>
> the following snippet is from my paper which I present at BSDCan next
(Continue reading)

Hugo Meiland | 1 May 2006 20:00
Picon

arla on freebsd 6.0....again....

Hi all,

It looks like I'm really stuck now....please give me a hand on this...
Based on the initial ports/patch tar of Rick, I did some additional 
coding and came to this point....:

- compiling does not complain...(for now)
- /usr/arla/sbin/startarla mounts /dev/nnpfs0 to /afs
- when doing a ls of /afs -> kernel panics
it seems to panic somewhere in vfs_get...

You can find the diff here:
http://www.meiland.nl/afs/arla/arla-freebsd-6.0.diff

please have a look, and maybe test in on a test system...

thanks for any input!!

Hugo
Hugo Meiland | 1 May 2006 20:18
Picon

Re: arla on freebsd 6.0....again....

> It looks like I'm really stuck now....please give me a hand on this...
> Based on the initial ports/patch tar of Rick, I did some additional 
> coding and came to this point....:
> 
> - compiling does not complain...(for now)
> - /usr/arla/sbin/startarla mounts /dev/nnpfs0 to /afs

output of fs nnpfsdebug almost-all:
May  1 18:17:28 test kernel: nnpfs: syscall: 339
May  1 18:17:28 test kernel: nnpfs_mount: struct mount mp = c1b51c00 
path = '/afs' data = '/dev/nnpfs0'
May  1 18:17:28 test kernel: nnpfs_statfs: mp = c1b51c00, sbp = 
c1b51c80, proc = c1c6b600
May  1 18:17:28 test kernel: nnpfs_root mp = c1b51c00
May  1 18:17:28 test kernel: nnpfs_message_rpc opcode = 2
May  1 18:17:29 test kernel: nnpfs_message_receive opcode = 3
May  1 18:17:29 test kernel: nnpfs_message_installroot (155,536870913,1,1)
May  1 18:17:29 test kernel: nnpfs_new_node (155,536870913,1,1)
May  1 18:17:29 test kernel: return: nnpfs_new_node
May  1 18:17:29 test kernel: installroot returning 0
May  1 18:17:29 test kernel: nnpfs_message_receive opcode = 1
May  1 18:17:29 test kernel: nnpfs_message_wakeup error: 0
May  1 18:17:29 test kernel: nnpfs_message_rpc 
this_process->error_or_size = 0
May  1 18:17:29 test kernel: nnpfs_message_rpc error = 0

> - when doing a ls of /afs -> kernel panics
> it seems to panic somewhere in vfs_get...
> 
> You can find the diff here:
(Continue reading)

Tomas Olsson | 1 May 2006 23:08
Picon
Picon
Favicon

Re: arla on freebsd 6.0....again....

Hugo Meiland <hugo <at> meiland.nl> writes:
> It looks like I'm really stuck now....please give me a hand on this...
> Based on the initial ports/patch tar of Rick, I did some additional 
> coding and came to this point....:
>
Cool.  Gernot Hueber (and others?) did some work too.  The last version I
got from him (slightly patched and adapted to then-current) is at
/afs/stacken.kth.se/ftp/pub/random/tol/arla-fbsd-tol-060322.tgz (guess the
ftp url).  I ended up just tar:ing the local CVS tree.  Maybe there are
some patches in there that can help you get further.  It actually let me
list files on my 6.1-BETA-something :)

If you have the time to set it up, it really helps to have a kernel with
some debug options (VFS_LOCKS_DEBUG etc) and a working kernel core dump
setup.  Let me know if you need any help with that.

thanks
        /t
Hugo Meiland | 2 May 2006 08:18
Picon

RE: arla on freebsd 6.0....again....


> Cool.  Gernot Hueber (and others?) did some work too.  The 
> last version I got from him (slightly patched and adapted to 
> then-current) is at 
> /afs/stacken.kth.se/ftp/pub/random/tol/arla-fbsd-tol-060322.tg
> z (guess the ftp url).  I ended up just tar:ing the local CVS 
> tree.  Maybe there are some patches in there that can help 
> you get further.  It actually let me list files on my 
> 6.1-BETA-something :)
> 

And copy, use tokens etc....the only failure I saw was while shutting down
-> kernel panic...
Any other problems known? Or can we prepare diffs from this to get into
current??

Hugo
Tomas Olsson | 2 May 2006 09:41
Picon
Picon
Favicon

Re: arla on freebsd 6.0....again....

"Hugo Meiland" <hugo <at> meiland.nl> writes:
> And copy, use tokens etc....the only failure I saw was while shutting down
> -> kernel panic...
> Any other problems known? Or can we prepare diffs from this to get into
> current??
>
I haven't looked at it much.  I tried doing run-tests -all -fast on my
debug kernel, and it panicked after about one second.  That should
probably be fixed :)

Things to do:
 * cvs update
 * clean up all the changes (proper ifdefs etc)
 * run-tests -all -fast on 5.5 and 6.1

I won't have time to much of the real work myself right now, but as always
I'm happy to help out it there are any questions.  I guess there are other
interested parties out there, so let us know how things go.

/t (the future is bright!)
Hugo Meiland | 2 May 2006 11:45
Picon

Small steps toward freebsd6 support...


For starters: patch to bsd-header-vnode-if-h.m4 which follows the new
freebsd6 vnode_if.awk options...

Tested on:
- freebsd5.5-beta4 -> here is gives a usage-warning, but does not break...

--- ../../../cvs/arla.orig/cf/bsd-header-vnode-if-h.m4	Thu Feb 12 16:28:15
2004
+++ cf/bsd-header-vnode-if-h.m4	Sun Mar 19 22:51:16 2006
 <at>  <at>  -23,6 +23,8  <at>  <at> 
   /bin/sh $SYS/kern/vnode_if.sh $SYS/kern/vnode_if.src
 elif test -f $SYS/tools/vnode_if.awk ; then
   awk -f $SYS/tools/vnode_if.awk $SYS/kern/vnode_if.src -h
+  awk -f $SYS/tools/vnode_if.awk $SYS/kern/vnode_if.src -p
+  awk -f $SYS/tools/vnode_if.awk $SYS/kern/vnode_if.src -q
 else
   AC_MSG_ERROR(unable to find any vnode_if script)
 fi

Enjoy,

Hugo

Gmane