There is a constant specifying the maximum number of md devices. But,
there is no variable stating how many active md devices are around. This
wouldn't make much sense anyway since the md devices are not allocated
sequentially. You can start with md3, for example.

You can have a program analyze the /proc/mdstat file to see what md
device numbers are currently active and thus not available for new
devices.

<>< Lance.


Thomas Waldmann wrote:
> 
> Is there a variable containing the md device count (md0, md1, ..., mdn. n == ?)
> ?

Reply via email to