Switch to static minors for DRBD
authorIustin Pop <iustin@google.com>
Tue, 23 Sep 2008 12:10:44 +0000 (12:10 +0000)
committerIustin Pop <iustin@google.com>
Tue, 23 Sep 2008 12:10:44 +0000 (12:10 +0000)
commita1578d6345fc5a278522835945c49d79aeac6d07
tree30305ce9543dcc7fa5baa5c36428b615ec22ac33
parenta81c53c921428420eb66650d8011abcce1504fed
Switch to static minors for DRBD

With some todos remaining, this patch switches the DRBD devices to use
the passed minors, and the cmdlib code (add instance and replace disks)
to request and assign minors to the DRBD disks.

Todos:
  - look at the disk RPC calls to see which can be optimized away, since
    we now know the minor beforehand
  - remove the _FindUnusedMinor usage from the few places it's still
    used (not for actual disks, but for temporary use in meta devs) and
    eventually replace with _CheckMinorUnused or such

Of course, this and/or the previous two patches break existing clusters.
Again.

Reviewed-by: imsnah
lib/bdev.py
lib/cmdlib.py