Revision c41eea6e lib/objects.py
b/lib/objects.py | ||
---|---|---|
549 | 549 |
def MapLVsByNode(self, lvmap=None, devs=None, node=None): |
550 | 550 |
"""Provide a mapping of nodes to LVs this instance owns. |
551 | 551 |
|
552 |
This function figures out what logical volumes should belong on which
|
|
553 |
nodes, recursing through a device tree. |
|
552 |
This function figures out what logical volumes should belong on |
|
553 |
which nodes, recursing through a device tree.
|
|
554 | 554 |
|
555 |
Args:
|
|
556 |
lvmap: (optional) a dictionary to receive the 'node' : ['lv', ...] data.
|
|
555 |
@param lvmap: optional dictionary to receive the
|
|
556 |
'node' : ['lv', ...] data.
|
|
557 | 557 |
|
558 |
Returns: |
|
559 |
None if lvmap arg is given. |
|
560 |
Otherwise, { 'nodename' : ['volume1', 'volume2', ...], ... } |
|
558 |
@return: None if lvmap arg is given, otherwise, a dictionary |
|
559 |
of the form { 'nodename' : ['volume1', 'volume2', ...], ... } |
|
561 | 560 |
|
562 | 561 |
""" |
563 | 562 |
if node == None: |
Also available in: Unified diff