Re: pmf(9) vs sysmon for power events (especially sleep when powerd(8) is not running)

2011-05-07 Thread Martin Husemann
On Fri, May 06, 2011 at 04:45:55PM +0100, Jean-Yves Migeon wrote: 1 - I shall patch sysmon_pswitch_event and add a callback for sleep that MD code can register, Yes (or a list of callbacks, even, maybe not only MD code but various subsystems might need this later). Martin

statvfs() sleeps forever on tstile

2011-05-07 Thread Emmanuel Dreyfus
On NetBSD-5.1, when an FFS filesystem has extended attributes, any call to statfs(2) will never return from the kernel. ps -axl shows the process is sleeping at tstile. Is it a known problem, is there already a PR for it? -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@netbsd.org

Re: pmf(9) vs sysmon for power events (especially sleep when powerd(8) is not running)

2011-05-07 Thread Jukka Ruohonen
On Sat, May 07, 2011 at 09:03:42PM +0200, Jean-Yves Migeon wrote: - sysmon_pswitch(9) can still be used to register power switch events, these events being modeled following a switch functionality e.g. when a threshold is passed. Yes. Although I don't know what you mean by thresholds. -

Re: pmf(9) vs sysmon for power events (especially sleep when powerd(8) is not running)

2011-05-07 Thread Jukka Ruohonen
On Fri, May 06, 2011 at 04:45:55PM +0100, Jean-Yves Migeon wrote: 1 - I shall patch sysmon_pswitch_event and add a callback for sleep that MD code can register, 2 - or register a pmf(9) event handler during hypervisor attachment, and just use pmf_event_inject() in the /* XXX */ sleep path

Re: sys/dev/isa/fd.c FDUNIT/FDTYPE

2011-05-07 Thread Matthew Mondor
On Wed, 4 May 2011 19:54:37 -0700 jnem...@victoria.tc.ca (John Nemeth) wrote: This doesn't mean we should be doing hack jobs. NetBSD is about doing things right. Can postinstall fix/recreate specific buggy devices? Or could it warn that /dev/fd* might need to be recreated? Otherwise,

Re: pmf(9) vs sysmon for power events (especially sleep when powerd(8) is not running)

2011-05-07 Thread Jean-Yves Migeon
On 07.05.2011 21:45, Jukka Ruohonen wrote: On Sat, May 07, 2011 at 09:03:42PM +0200, Jean-Yves Migeon wrote: - sysmon_pswitch(9) can still be used to register power switch events, these events being modeled following a switch functionality e.g. when a threshold is passed. Yes. Although I