def BlockdevSetInfo(disk, info):
  r_dev = _RecursiveFindBD(disk)
  if r_dev is None:
    _Fail("Cannot find block device %s", disk)

  try:
    r_dev.SetInfo(info)
  except errors.BlockDeviceError, err:
    _Fail("Failed to set information on block device: %s", err, exc=True)
Sets 'metadata' information on block devices.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/BlockdevSetInfo