Revision 84d7e26b lib/objects.py
b/lib/objects.py | ||
---|---|---|
768 | 768 |
@param lvmap: optional dictionary to receive the |
769 | 769 |
'node' : ['lv', ...] data. |
770 | 770 |
|
771 |
@return: None if lvmap arg is given, otherwise, a dictionary |
|
772 |
of the form { 'nodename' : ['volume1', 'volume2', ...], ... } |
|
771 |
@return: None if lvmap arg is given, otherwise, a dictionary of |
|
772 |
the form { 'nodename' : ['volume1', 'volume2', ...], ... }; |
|
773 |
volumeN is of the form "vg_name/lv_name", compatible with |
|
774 |
GetVolumeList() |
|
773 | 775 |
|
774 | 776 |
""" |
775 | 777 |
if node == None: |
... | ... | |
788 | 790 |
|
789 | 791 |
for dev in devs: |
790 | 792 |
if dev.dev_type == constants.LD_LV: |
791 |
lvmap[node].append(dev.logical_id[1]) |
|
793 |
lvmap[node].append(dev.logical_id[0]+"/"+dev.logical_id[1])
|
|
792 | 794 |
|
793 | 795 |
elif dev.dev_type in constants.LDS_DRBD: |
794 | 796 |
if dev.children: |
Also available in: Unified diff