def __init__(self, unique_id, children, size, params, dyn_params, *args):
    super(ExtStorageDevice, self).__init__(unique_id, children, size, params,
                                           dyn_params, *args)
    (self.name, self.uuid) = args

    if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2:
      raise ValueError("Invalid configuration data %s" % str(unique_id))

    self.driver, self.vol_name = unique_id
    self.ext_params = params

    self.major = self.minor = None
    self.uris = []
    self.Attach()
Attaches to an extstorage block device.
dataset/ETHPy150Open ganeti/ganeti/lib/storage/extstorage.py/ExtStorageDevice.__init__