[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] [RFC 4/4] nbd: Add support for nbd as root device



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: