[dm-devel] multipath-tool udev rules require missing dmsetup features

Alasdair G Kergon agk at redhat.com
Mon Aug 13 00:31:21 UTC 2007


On Sun, Aug 12, 2007 at 06:27:17PM +0200, Guido Guenther wrote:
> Does the attached version look better?

I'd like it integrating into the *library*, not hard-coding into 'dmsetup'.
i.e. an alternative output format for the library's reporting mechanism.

so 'lvs -o vg_name,lv_name --asvariables' (with some more-descriptive choice of
cmdline arg) might produce:
LVM_VG_NAME_1="vg1"  
LVM_LV_NAME_1="lv1"
LVM_VG_NAME_2="vg1"
LVM_LV_NAME_2="lv2"
var name generated by library from prefix + col name in caps + row no suffix
(of course if you only ask for one object at a time, you'll always have suffix
of _1 so it should work fine for your scripts)

Alasdair
-- 
agk at redhat.com




More information about the dm-devel mailing list