NetBSD 5.0.1 and kmods

2010-01-30 Thread Hans Petter Selasky
Hi, I'm having some minor trouble upgrading my I4B software to use the new bsd.kmodule.mk and associated i4b.kmod output. 1) How can I dynamically load such a module at runtime? I tried to edit boot.cfg and add load i4b. It prints out during boot: Loaded i4b But the callbacks in my code (see

Re: NetBSD 5.0.1 and kmods

2010-01-30 Thread Matthew Mondor
On Sat, 30 Jan 2010 17:44:43 +0100 Hans Petter Selasky hsela...@c2i.net wrote: Hi, I'm having some minor trouble upgrading my I4B software to use the new bsd.kmodule.mk and associated i4b.kmod output. 1) How can I dynamically load such a module at runtime? Unless this recently changed,

Re: NetBSD 5.0.1 and kmods

2010-01-30 Thread Matthew Mondor
On Sat, 30 Jan 2010 13:11:09 -0500 Matthew Mondor mm_li...@pulsar-zone.net wrote: Unless this recently changed, I think that netbsd-5 modload(8) currently only supports the dynamic loading of LKMs (old-style modules from /usr/lkm/). I think that I misread though, I'm not sure if the netbsd-5

Re: NetBSD 5.0.1 and kmods

2010-01-30 Thread Stephen Borrill
On Sat, 30 Jan 2010, Matthew Mondor wrote: On Sat, 30 Jan 2010 13:11:09 -0500 Matthew Mondor mm_li...@pulsar-zone.net wrote: Unless this recently changed, I think that netbsd-5 modload(8) currently only supports the dynamic loading of LKMs (old-style modules from /usr/lkm/). I think that I

Re: ddb write and io memory

2010-01-30 Thread David Holland
On Sat, Jan 30, 2010 at 08:45:48PM +0100, Frank Wille wrote: Therefore I would like to change ddb/db_write_cmd.c as in the following patch: [...] Any objections? Do we absolutely need to print the old value here? I think it's somewhat desirable to. Wouldn't it be better anyway to

Re: kernel level multilink PPP and maybe (re)porting FreeBSD netgraph

2010-01-30 Thread Greg A. Woods
At Sat, 30 Jan 2010 11:37:41 +0900, Masao Uebayashi uebay...@tombi.co.jp wrote: Subject: Re: kernel level multilink PPP and maybe (re)porting FreeBSD netgraph What you need is something like npppd/pipex which OpenBSD has just imported? Not as it is, as far as I can tell. (I don't see any

Re: kernel level multilink PPP and maybe (re)porting FreeBSD netgraph

2010-01-30 Thread David Young
On Sat, Jan 30, 2010 at 03:59:29PM -0500, Greg A. Woods wrote: The kernel code (if indeed it has any client code -- not sure yet) doesn't seem to allow forwarding through UDP or TCP. It does mention PPTP, and PPPoE in places but those don't really help me directly. You can operate gre(4) over

re: ddb write and io memory

2010-01-30 Thread matthew green
On Sat, Jan 30, 2010 at 08:45:48PM +0100, Frank Wille wrote: Therefore I would like to change ddb/db_write_cmd.c as in the following patch: [...] Any objections? Do we absolutely need to print the old value here? I think it's somewhat desirable to. Wouldn't it

Re: ddb write and io memory

2010-01-30 Thread Frank Wille
matthew green wrote: On Sat, Jan 30, 2010 at 08:45:48PM +0100, Frank Wille wrote: Therefore I would like to change ddb/db_write_cmd.c as in the following ch: [...] Any objections? Do we absolutely need to print the old value here? I think it's somewhat desirable to. Wouldn't

buffer cache can return buffer of another inode ?

2010-01-30 Thread Manuel Bouyer
Hi, while investigating directory corruption on my NFS server I found a possible issue with the buffer cache. The buffer cache keeps a hash of buf_t, the key being (vp, bp-b_lblkno). This allows, for a read or write, to find if a buffer for this block has already been allocated and if data is

Re: kernel level multilink PPP and maybe (re)porting FreeBSD netgraph

2010-01-30 Thread Greg A. Woods
At Sat, 30 Jan 2010 15:11:03 -0600, David Young dyo...@pobox.com wrote: Subject: Re: kernel level multilink PPP and maybe (re)porting FreeBSD netgraph On Sat, Jan 30, 2010 at 03:59:29PM -0500, Greg A. Woods wrote: The kernel code (if indeed it has any client code -- not sure yet) doesn't

re: ddb write and io memory

2010-01-30 Thread matthew green
another alternative would be to add a flag to write, eg write/n. .mrg.

Re: buffer cache can return buffer of another inode ?

2010-01-30 Thread David Holland
On Sun, Jan 31, 2010 at 12:35:16AM +0100, Manuel Bouyer wrote: Hi, while investigating directory corruption on my NFS server I found a possible issue with the buffer cache. [...] I think vclean() should also take care of removing the vnode from the buffer cache's hash. Comments ? Yes.

Re: uvm_object::vmobjlock

2010-01-30 Thread David Holland
On Thu, Jan 28, 2010 at 09:55:53PM +, Mindaugas Rasiukevicius wrote: Unless anyone objects, I would like to change struct uvm_object::vmobjlock to be dynamically allocated with mutex_obj_alloc(). It allows us to: 1) share the lock among objects by holding a reference 2) avoid