launch: Treat /dev/null specially, for old KVM.

Old KVM can't add /dev/null readonly.  Treat /dev/null as a special
case.

We also fix a few tests where /dev/null was being used with
format=qcow2.  This was always incorrect behaviour, but qemu appears
to tolerate it.
This commit is contained in:
Richard W.M. Jones
2012-06-25 09:03:39 +01:00
parent 78a515ec4a
commit 729bb9c6b5
6 changed files with 45 additions and 10 deletions

View File

@@ -30,5 +30,5 @@ ok (1);
$h->add_drive_opts ("/dev/null", readonly => 1);
ok (1);
$h->add_drive_opts ("/dev/null", format => "qcow2", readonly => 0);
$h->add_drive_opts ("/dev/null", format => "raw", readonly => 0);
ok (1);