Revision a1578d63 lib/bdev.py

b/lib/bdev.py
1243 1243
    the attach if can return success.
1244 1244

  
1245 1245
    """
1246
    for minor in self._GetUsedDevs():
1246
    for minor in (self._aminor,):
1247 1247
      info = self._GetDevInfo(self._GetShowData(minor))
1248 1248
      match_l = self._MatchesLocal(info)
1249 1249
      match_r = self._MatchesNet(info)
......
1319 1319
    if not result:
1320 1320
      return result
1321 1321

  
1322
    minor = self._FindUnusedMinor()
1322
    # TODO: maybe completely tear-down the minor (drbdsetup ... down)
1323
    # before attaching our own?
1324
    minor = self._aminor
1323 1325
    need_localdev_teardown = False
1324 1326
    if self._children and self._children[0] and self._children[1]:
1325 1327
      result = self._AssembleLocal(minor, self._children[0].dev_path,

Also available in: Unified diff