def BlockdevGetdimensions(disks):
  result = []
  for cf in disks:
    try:
      rbd = _RecursiveFindBD(cf)
    except errors.BlockDeviceError:
      result.append(None)
      continue
    if rbd is None:
      result.append(None)
    else:
      result.append(rbd.GetActualDimensions())
  return result
Computes the size of the given disks.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/BlockdevGetdimensions