Revision c904c032
b/lib/bdev.py | ||
---|---|---|
518 | 518 |
_INVALID_NAMES = compat.UniqueFrozenset([".", "..", "snapshot", "pvmove"]) |
519 | 519 |
_INVALID_SUBSTRINGS = compat.UniqueFrozenset(["_mlog", "_mimage"]) |
520 | 520 |
|
521 |
def __init__(self, unique_id, children, size, params): |
|
521 |
def __init__(self, unique_id, children, size, params, *args):
|
|
522 | 522 |
"""Attaches to a LV device. |
523 | 523 |
|
524 | 524 |
The unique_id is a tuple (vg_name, lv_name) |
... | ... | |
1376 | 1376 |
_DISABLE_FLUSH_OPTION = "--no-disk-flushes" # -i |
1377 | 1377 |
_DISABLE_META_FLUSH_OPTION = "--no-md-flushes" # -m |
1378 | 1378 |
|
1379 |
def __init__(self, unique_id, children, size, params): |
|
1379 |
def __init__(self, unique_id, children, size, params, *args):
|
|
1380 | 1380 |
if children and children.count(None) > 0: |
1381 | 1381 |
children = [] |
1382 | 1382 |
if len(children) not in (0, 2): |
... | ... | |
2360 | 2360 |
The unique_id for the file device is a (file_driver, file_path) tuple. |
2361 | 2361 |
|
2362 | 2362 |
""" |
2363 |
def __init__(self, unique_id, children, size, params): |
|
2363 |
def __init__(self, unique_id, children, size, params, *args):
|
|
2364 | 2364 |
"""Initalizes a file device backend. |
2365 | 2365 |
|
2366 | 2366 |
""" |
... | ... | |
2521 | 2521 |
For the time being, pathnames are required to lie under /dev. |
2522 | 2522 |
|
2523 | 2523 |
""" |
2524 |
def __init__(self, unique_id, children, size, params): |
|
2524 |
def __init__(self, unique_id, children, size, params, *args):
|
|
2525 | 2525 |
"""Attaches to a static block device. |
2526 | 2526 |
|
2527 | 2527 |
The unique_id is a path under /dev. |
Also available in: Unified diff