From: Alasdair G Kergon Subject: Re: multipath-tool udev rules require missing dmsetup features Date: Mon, 13 Aug 2007 01:31:21 +0100 Message-ID: <20070813003121.GK2064@agk.fab.redhat.com> References: <469EB881.6070207@csupomona.edu> <20070719061622.GB21899@pentland.suse.de> <20070720164635.GB459@agk.fab.redhat.com> <20070812162716.GA9108@bogon.ms20.nix> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070812162716.GA9108@bogon.ms20.nix> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Guido Guenther Cc: Bastian Blank , device-mapper development List-Id: dm-devel.ids 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@redhat.com