Re: Add operation vcache_rekey

2014-06-26 Thread J. Hannken-Illjes
On 26 Jun 2014, at 05:33, David Holland dholland-t...@netbsd.org wrote: On Wed, Jun 25, 2014 at 09:46:16AM +, Taylor R Campbell wrote: Also, I wonder whether any file systems will ever change the length of the key for a vnode. Probably not. As I recall from when I was looking at this a

Re: Fix netbsd32's getfh()

2014-06-26 Thread Maxime Villard
Le 26/06/2014 04:04, Christos Zoulas a écrit : On Jun 26, 11:30am, m...@eterna.com.au (matthew green) wrote: -- Subject: re: Fix netbsd32's getfh() | | Christos Zoulas writes: | Well, let's not propagate the evil design! I is is one thing having: | |void *p = malloc(n); |

Re: Fix netbsd32's getfh()

2014-06-26 Thread Christos Zoulas
On Jun 26, 4:30pm, m...@m00nbsd.net (Maxime Villard) wrote: -- Subject: Re: Fix netbsd32's getfh() | I guess it's ok now? Yes, that looks fine. But why: if (error != 0) instead of: if (error) I think that most code in the tree uses the second form. christos | | Index:

Device node creation when major number is dynamically allocated

2014-06-26 Thread Jan Sucan
Hello, I am interested in NetBSD kernel and I have written a simple character pseudo device driver module which calculates Fibonacii numbers. It works but there is something I am not certain of. I don't know how to create device node without having to know major number allocated dynamically

Re: Device node creation when major number is dynamically allocated

2014-06-26 Thread Christos Zoulas
In article 53ac78b6.9090...@runbox.com, Jan Sucan su...@runbox.com wrote: Hello, I am interested in NetBSD kernel and I have written a simple character pseudo device driver module which calculates Fibonacii numbers. It works but there is something I am not certain of. I don't know how to

re: Device node creation when major number is dynamically allocated

2014-06-26 Thread matthew green
Christos Zoulas writes: In article 53ac78b6.9090...@runbox.com, Jan Sucan su...@runbox.com wrote: Hello, I am interested in NetBSD kernel and I have written a simple character pseudo device driver module which calculates Fibonacii numbers. It works but there is something I am not

re: Device node creation when major number is dynamically allocated

2014-06-26 Thread Christos Zoulas
On Jun 27, 12:08pm, m...@eterna.com.au (matthew green) wrote: -- Subject: re: Device node creation when major number is dynamically allocat | I don't see anything like that. Perhaps there should be a way to query | a module about this. For now the only thing I can think of is to use | sysctl