def BlockdevGrow(disk, amount, dryrun, backingstore, excl_stor):
  r_dev = _RecursiveFindBD(disk)
  if r_dev is None:
    _Fail("Cannot find block device %s", disk)

  try:
    r_dev.Grow(amount, dryrun, backingstore, excl_stor)
  except errors.BlockDeviceError, err:
    _Fail("Failed to grow block device: %s", err, exc=True)
Grow a stack of block devices.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/BlockdevGrow