Revision 09f739cc

b/lib/storage/bdev.py
67 67
  _INVALID_NAMES = compat.UniqueFrozenset([".", "..", "snapshot", "pvmove"])
68 68
  _INVALID_SUBSTRINGS = compat.UniqueFrozenset(["_mlog", "_mimage"])
69 69

  
70
  def __init__(self, unique_id, children, size, params, dyn_params):
70
  def __init__(self, unique_id, children, size, params, dyn_params, *args):
71 71
    """Attaches to a LV device.
72 72

  
73 73
    The unique_id is a tuple (vg_name, lv_name)
74 74

  
75 75
    """
76 76
    super(LogicalVolume, self).__init__(unique_id, children, size, params,
77
                                        dyn_params)
77
                                        dyn_params, *args)
78 78
    if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2:
79 79
      raise ValueError("Invalid configuration data %s" % str(unique_id))
80 80
    self._vg_name, self._lv_name = unique_id
......
720 720
  The unique_id for the file device is a (file_driver, file_path) tuple.
721 721

  
722 722
  """
723
  def __init__(self, unique_id, children, size, params, dyn_params):
723
  def __init__(self, unique_id, children, size, params, dyn_params, *args):
724 724
    """Initalizes a file device backend.
725 725

  
726 726
    """
......
883 883
  For the time being, pathnames are required to lie under /dev.
884 884

  
885 885
  """
886
  def __init__(self, unique_id, children, size, params, dyn_params):
886
  def __init__(self, unique_id, children, size, params, dyn_params, *args):
887 887
    """Attaches to a static block device.
888 888

  
889 889
    The unique_id is a path under /dev.
890 890

  
891 891
    """
892 892
    super(PersistentBlockDevice, self).__init__(unique_id, children, size,
893
                                                params, dyn_params)
893
                                                params, dyn_params, *args)
894 894
    if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2:
895 895
      raise ValueError("Invalid configuration data %s" % str(unique_id))
896 896
    self.dev_path = unique_id[1]
......
996 996
  this to be functional.
997 997

  
998 998
  """
999
  def __init__(self, unique_id, children, size, params, dyn_params):
999
  def __init__(self, unique_id, children, size, params, dyn_params, *args):
1000 1000
    """Attaches to an rbd device.
1001 1001

  
1002 1002
    """
1003 1003
    super(RADOSBlockDevice, self).__init__(unique_id, children, size, params,
1004
                                           dyn_params)
1004
                                           dyn_params, *args)
1005 1005
    if not isinstance(unique_id, (tuple, list)) or len(unique_id) != 2:
1006 1006
      raise ValueError("Invalid configuration data %s" % str(unique_id))
1007 1007

  
b/lib/storage/drbd.py
174 174
  # timeout constants
175 175
  _NET_RECONFIG_TIMEOUT = 60
176 176

  
177
  def __init__(self, unique_id, children, size, params, dyn_params):
177
  def __init__(self, unique_id, children, size, params, dyn_params, *args):
178 178
    if children and children.count(None) > 0:
179 179
      children = []
180 180
    if len(children) not in (0, 2):
......
199 199
        logging.info("drbd%s: Ignoring unreadable meta device", self._aminor)
200 200
        children = []
201 201
    super(DRBD8Dev, self).__init__(unique_id, children, size, params,
202
                                   dyn_params)
202
                                   dyn_params, *args)
203 203
    self.major = self._DRBD_MAJOR
204 204

  
205 205
    info = DRBD8.GetProcInfo()

Also available in: Unified diff