grow-disk: refuse to start if the disk is degraded
authorIustin Pop <iustin@google.com>
Tue, 24 Jun 2008 11:51:03 +0000 (11:51 +0000)
committerIustin Pop <iustin@google.com>
Tue, 24 Jun 2008 11:51:03 +0000 (11:51 +0000)
commitcb29b34f09d7ce7b23a00b632530d541b5daff24
tree0cf3a5f1156e45d5183da7c326e60e0eab4f106b
parent2aa150e4c09fb9bab27f5fd597c3fabf2ad6a78b
grow-disk: refuse to start if the disk is degraded

DRBD refuses to grow the disk if it's not fully synch-ed, for example
it's still processing the result of a previous grow. As such, it's
better to prevent any operation unless all nodes look good.

The patch also adds a simple check for amount > 0.

Reviewed-by: imsnah
lib/cmdlib.py