mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user