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 |

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general

Reply via email to