def _RecursiveFindBD(disk):
  children = []
  if disk.children:
    for chdisk in disk.children:
      children.append(_RecursiveFindBD(chdisk))

  return bdev.FindDevice(disk, children)
Check if a device is activated.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/_RecursiveFindBD