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

Re: [linux-lvm] Inconsistent naming...?



>
>Oh - you've just reminded me:
>  dmsetup splitname
>
>Alasdair
>

That works, but it's not exactly convenient.

[root system ~]# dmsetup splitname /dev/mapper/tempvg-lvspare1
VG                 LV       LVLayer
/dev/mapper/tempvg lvspare1        

If /dev/tempvg/lvspare1 is the optimal naming scheme, cut or awk is needed to recreate the name from that output.  How about a 'dmsetup canonical' that takes <device> and provides /dev/<vg>/<lv>?

-- Jess


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