Revision cad0723b lib/backend.py
b/lib/backend.py | ||
---|---|---|
2443 | 2443 |
return result |
2444 | 2444 |
|
2445 | 2445 |
|
2446 |
def BlockdevGrow(disk, amount, dryrun): |
|
2446 |
def BlockdevGrow(disk, amount, dryrun, backingstore):
|
|
2447 | 2447 |
"""Grow a stack of block devices. |
2448 | 2448 |
|
2449 | 2449 |
This function is called recursively, with the childrens being the |
... | ... | |
2456 | 2456 |
@type dryrun: boolean |
2457 | 2457 |
@param dryrun: whether to execute the operation in simulation mode |
2458 | 2458 |
only, without actually increasing the size |
2459 |
@param backingstore: whether to execute the operation on backing storage |
|
2460 |
only, or on "logical" storage only; e.g. DRBD is logical storage, |
|
2461 |
whereas LVM, file, RBD are backing storage |
|
2459 | 2462 |
@rtype: (status, result) |
2460 | 2463 |
@return: a tuple with the status of the operation (True/False), and |
2461 | 2464 |
the errors message if status is False |
... | ... | |
2466 | 2469 |
_Fail("Cannot find block device %s", disk) |
2467 | 2470 |
|
2468 | 2471 |
try: |
2469 |
r_dev.Grow(amount, dryrun) |
|
2472 |
r_dev.Grow(amount, dryrun, backingstore)
|
|
2470 | 2473 |
except errors.BlockDeviceError, err: |
2471 | 2474 |
_Fail("Failed to grow block device: %s", err, exc=True) |
2472 | 2475 |
|
Also available in: Unified diff