Some info given by 'mdadm --detail --export' are not convenient to use

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

 



Hello,

I'm writing a tool that relies udev lib in order to manage block
devices connected to my computer.

One thing that I need is to retrieve disks contained by a RAID array.

The current usefull information exported by udev are, for example:

MD_DEVICES=3
MD_DEVICE_loop0p1_DEV=/dev/loop0p1
MD_DEVICE_loop0p1_ROLE=0
MD_DEVICE_loop1p1_DEV=/dev/loop1p1
MD_DEVICE_loop1p1_ROLE=1
MD_DEVICE_loop2p1_DEV=/dev/loop2p1
MD_DEVICE_loop2p1_ROLE=2

but this is not really easy to exploit since I need to know the disk
names in order to poke the devices used by the array :-/

why not simply using ?

MD_DEVICE_DEV_1=/dev/loop0p1
MD_DEVICE_ROLE_1=0

Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux