Actually mark drives as read-only if so configured
authorIustin Pop <iustin@google.com>
Wed, 28 Jan 2009 19:06:00 +0000 (19:06 +0000)
committerIustin Pop <iustin@google.com>
Wed, 28 Jan 2009 19:06:00 +0000 (19:06 +0000)
commitd34b16d715ff7f678370bb5045dae2027b4745a8
treea1404d073299d9231fa3af45217b0b0bf587ac98
parentdf0fb06741e9bcdc4752d09b4f4472998e790a42
Actually mark drives as read-only if so configured

This patch correctly marks the drives as read-only for Xen, and raises
and exception for KVM since it doesn't support read-only drives.

Reviewed-by: ultrotter
lib/hypervisor/hv_kvm.py
lib/hypervisor/hv_xen.py