All of lore.kernel.org
 help / color / mirror / Atom feed
* Some info given by 'mdadm --detail --export' are not convenient to use
@ 2014-04-11 11:01 Francis Moreau
  2014-04-11 23:43 ` NeilBrown
  0 siblings, 1 reply; 4+ messages in thread
From: Francis Moreau @ 2014-04-11 11:01 UTC (permalink / raw)
  To: linux-raid

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-12 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 11:01 Some info given by 'mdadm --detail --export' are not convenient to use Francis Moreau
2014-04-11 23:43 ` NeilBrown
2014-04-12  8:22   ` Francis Moreau
2014-04-12 16:34     ` bobzer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.