Revision be9150ea lib/backend.py
b/lib/backend.py | ||
---|---|---|
2853 | 2853 |
return result |
2854 | 2854 |
|
2855 | 2855 |
|
2856 |
def BlockdevGrow(disk, amount, dryrun, backingstore): |
|
2856 |
def BlockdevGrow(disk, amount, dryrun, backingstore, excl_stor):
|
|
2857 | 2857 |
"""Grow a stack of block devices. |
2858 | 2858 |
|
2859 | 2859 |
This function is called recursively, with the childrens being the |
... | ... | |
2870 | 2870 |
only, or on "logical" storage only; e.g. DRBD is logical storage, |
2871 | 2871 |
whereas LVM, file, RBD are backing storage |
2872 | 2872 |
@rtype: (status, result) |
2873 |
@type excl_stor: boolean |
|
2874 |
@param excl_stor: Whether exclusive_storage is active |
|
2873 | 2875 |
@return: a tuple with the status of the operation (True/False), and |
2874 | 2876 |
the errors message if status is False |
2875 | 2877 |
|
... | ... | |
2879 | 2881 |
_Fail("Cannot find block device %s", disk) |
2880 | 2882 |
|
2881 | 2883 |
try: |
2882 |
r_dev.Grow(amount, dryrun, backingstore) |
|
2884 |
r_dev.Grow(amount, dryrun, backingstore, excl_stor)
|
|
2883 | 2885 |
except errors.BlockDeviceError, err: |
2884 | 2886 |
_Fail("Failed to grow block device: %s", err, exc=True) |
2885 | 2887 |
|
Also available in: Unified diff