Date: Mon, 29 Jan 2001 06:22:54 -0800 From: Peter Wemm <peter@netplex.com.au> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: Brian Somers <brian@Awfulhak.org>, freebsd-arch@FreeBSD.ORG Subject: Re: Cloned open support Message-ID: <200101291422.f0TEMs451812@mobile.wemm.org> In-Reply-To: <21316.980777757@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > In message <200101291402.f0TE2A451479@mobile.wemm.org>, Peter Wemm writes: > >Brian Somers wrote: > >> Hi, > >> > >> I'm considering having a crack at adding support for cloned opens. > >> Before I start, I guess I've got two questions: > >> > >> 1. Is anybody else doing this. > >> > >> 2. Given that I'll need to change the d_open prototype (and > >> thus cdevsw), I'm going to affect every device driver in the > >> tree - although only changing the first arg to a (dev_t) > >> pointer, making things pretty easy to change and not too > >> unexpected for anyone that's written sysv drivers. > > > >Not necessary. dev_t *is* a pointer. Add a flag to the device flags to > >indicate that it allows clone opens, and maybe teach specfs a little about > >it (ie: that the unit will be reassigned on a clone open) and you're done. > > But but but... we already *have* cloning Peter. It doesn't need > a dedicated minordevice and it works for everything but vinum(4), > and that is not because it cannot do what vinum(4) needs, but > because vinum(4) needs somebody to do it. Who said anything about vinum? Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101291422.f0TEMs451812>