Re: [Nbd] [RFC 4/4] nbd: Add support for nbd as root device
- To: Markus Pargmann <mpa@...1897...>
- Cc: "nbd-general@lists.sourceforge.net" <nbd-general@lists.sourceforge.net>, Paul Clements <paul.clements@...856...>, "kernel@...1897..." <kernel@...1897...>
- Subject: Re: [Nbd] [RFC 4/4] nbd: Add support for nbd as root device
- From: Wouter Verhelst <w@...112...>
- Date: Thu, 5 Feb 2015 09:18:14 +0100
- Message-id: <20150205081814.GA8438@...3...>
- In-reply-to: <20150131154500.GK16879@...1897...>
- References: <1421156665-27318-1-git-send-email-mpa@...1897...> <1421156665-27318-5-git-send-email-mpa@...1897...> <20150129234254.GD15853@...3...> <20150130080400.GD16879@...1897...> <20150130173014.GA16754@...3...> <20150131123821.GI16879@...1897...> <CAECXXi5+VhBeZwZ5aosc+Oc+0bCZbJZTjzYA-QTRrJCjs2NFOw@...18...> <20150131144316.GA4328@...1265...> <20150131154500.GK16879@...1897...>
So, about this.
[Cc list trimmed]
On Sat, Jan 31, 2015 at 04:45:00PM +0100, Markus Pargmann wrote:
> Yes some better non-racy way to find a free nbd would be good.
I had been thinking it might make sense for NBD to have something like
an "nbd master", in the style of /dev/pts/ptmx; a /dev node whom you ask
for an NBD device assignment, and which replies with a name, or
something along those lines.
The problem, as ever, is backwards compatibility. If taken to its
logical extreme, this nbdmaster devnode would exist from module
initialization, but things like /dev/nbd0 etc wouldn't be, only when
they are registered. That would not be backwards compatible...
--
It is easy to love a country that is famous for chocolate and beer
-- Barack Obama, speaking in Brussels, Belgium, 2014-03-26
Reply to: