Hi,

How can I determine which is the first free nbd device?

Currently I have 2 ways to check if an device is connected: the first is
calling file on the device and check if it is empty or not. The second is
call lsblk and see if the device is in the list.

Rather than looping over all nbd devices until I find one free to use, I
wondered if there's a way to immediately get the first free nbd device.

thanks

raph
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general

Reply via email to