Fix compatibility with DRBD 8.3
authorIustin Pop <iustin@google.com>
Tue, 5 May 2009 10:48:50 +0000 (12:48 +0200)
committerIustin Pop <iustin@google.com>
Tue, 5 May 2009 13:19:44 +0000 (15:19 +0200)
commit01e2ce3a6e4ca68983f50dedaddd0d0fc7b77026
tree6e9b2d41a6b66958f9041fe3f599c3456131bcf8
parent34e71feabfc1a4516ddfd207579f997efcabb4c5
Fix compatibility with DRBD 8.3

DRBD 8.3 changes two more things compared to 8.2:
  - /proc/drbd format changed in multiple ways; the part we're
    interested is the ‘st:’ to ‘ro:‘ change (in the changelog named as
    “Renamed 'state' to 'role'”
  - “drbdsetup /dev/drbdN show” changed the ‘device’ stanza from:
      device "/dev/drbd0";
    to:
      device                  minor 0;

This patch fixes these both and adds data files and unittests for DRBD
8.3.1.

Signed-off-by: Iustin Pop <iustin@google.com>
lib/bdev.py
test/data/bdev-8.3-both.txt [new file with mode: 0644]
test/data/proc_drbd83.txt [new file with mode: 0644]
test/ganeti.bdev_unittest.py