[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150131154500.GK16879@pengutronix.de>
Date: Sat, 31 Jan 2015 16:45:00 +0100
From: Markus Pargmann <mpa@...gutronix.de>
To: Andreas Klauer <Andreas.Klauer@...amorpher.de>
Cc: Paul Clements <paul.clements@...sios.com>,
"nbd-general@...ts.sourceforge.net"
<nbd-general@...ts.sourceforge.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
Wouter Verhelst <w@...r.be>
Subject: Re: [Nbd] [RFC 4/4] nbd: Add support for nbd as root device
Hi,
On Sat, Jan 31, 2015 at 03:43:16PM +0100, Andreas Klauer wrote:
> On Sat, Jan 31, 2015 at 08:52:18AM -0500, Paul Clements wrote:
> > The pid is also used to break a hung connection. See nbd_xmit_timeout.
>
> I'm using the pid to find the first free NBD device...
>
> If it's going away I guess I'll have to stick to /proc/partitions...?
> Although last time I tried, it did not work too well.
This was just an idea I am thinking about.
If it is deprecated, it would still be around for a while. And my first
idea was to replace it with other information that are not internal,
like 'connected' which would be a boolean type.
>
> (discussion on the NBD list, March 2014, "How to find a free NBD device")
Yes some better non-racy way to find a free nbd would be good.
Best regards,
Markus
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists