Revision c032b2ce lib/storage/bdev.py
b/lib/storage/bdev.py | ||
---|---|---|
69 | 69 |
_INVALID_NAMES = compat.UniqueFrozenset([".", "..", "snapshot", "pvmove"]) |
70 | 70 |
_INVALID_SUBSTRINGS = compat.UniqueFrozenset(["_mlog", "_mimage"]) |
71 | 71 |
|
72 |
def __init__(self, unique_id, children, size, params, dyn_params): |
|
72 |
def __init__(self, unique_id, children, size, params, dyn_params, *args):
|
|
73 | 73 |
"""Attaches to a LV device. |
74 | 74 |
|
75 | 75 |
The unique_id is a tuple (vg_name, lv_name) |
76 | 76 |
|
77 | 77 |
""" |
78 | 78 |
super(LogicalVolume, self).__init__(unique_id, children, size, params, |
79 |
dyn_params) |
|
79 |
dyn_params, *args)
|
|
80 | 80 |
if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2: |
81 | 81 |
raise ValueError("Invalid configuration data %s" % str(unique_id)) |
82 | 82 |
self._vg_name, self._lv_name = unique_id |
... | ... | |
724 | 724 |
For the time being, pathnames are required to lie under /dev. |
725 | 725 |
|
726 | 726 |
""" |
727 |
def __init__(self, unique_id, children, size, params, dyn_params): |
|
727 |
def __init__(self, unique_id, children, size, params, dyn_params, *args):
|
|
728 | 728 |
"""Attaches to a static block device. |
729 | 729 |
|
730 | 730 |
The unique_id is a path under /dev. |
731 | 731 |
|
732 | 732 |
""" |
733 | 733 |
super(PersistentBlockDevice, self).__init__(unique_id, children, size, |
734 |
params, dyn_params) |
|
734 |
params, dyn_params, *args)
|
|
735 | 735 |
if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2: |
736 | 736 |
raise ValueError("Invalid configuration data %s" % str(unique_id)) |
737 | 737 |
self.dev_path = unique_id[1] |
... | ... | |
837 | 837 |
this to be functional. |
838 | 838 |
|
839 | 839 |
""" |
840 |
def __init__(self, unique_id, children, size, params, dyn_params): |
|
840 |
def __init__(self, unique_id, children, size, params, dyn_params, *args):
|
|
841 | 841 |
"""Attaches to an rbd device. |
842 | 842 |
|
843 | 843 |
""" |
844 | 844 |
super(RADOSBlockDevice, self).__init__(unique_id, children, size, params, |
845 |
dyn_params) |
|
845 |
dyn_params, *args)
|
|
846 | 846 |
if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2: |
847 | 847 |
raise ValueError("Invalid configuration data %s" % str(unique_id)) |
848 | 848 |
|
Also available in: Unified diff