diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-25 09:03:39 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-25 11:20:35 +0100 |
commit | 729bb9c6b5ae0c0e7c68dc802b1617936062f966 (patch) | |
tree | 29d163c888a727dec893bde7277a8f452f235420 /python/t/060-optargs.py | |
parent | 78a515ec4a4e8650bd2e1ffc0bfbb97b9568306d (diff) | |
download | libguestfs-729bb9c6b5ae0c0e7c68dc802b1617936062f966.tar.gz libguestfs-729bb9c6b5ae0c0e7c68dc802b1617936062f966.tar.xz libguestfs-729bb9c6b5ae0c0e7c68dc802b1617936062f966.zip |
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.
Diffstat (limited to 'python/t/060-optargs.py')
-rw-r--r-- | python/t/060-optargs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/t/060-optargs.py b/python/t/060-optargs.py index 75ea06f3..be28a3ce 100644 --- a/python/t/060-optargs.py +++ b/python/t/060-optargs.py @@ -21,5 +21,5 @@ import guestfs g = guestfs.GuestFS() g.add_drive_opts ("/dev/null") g.add_drive_opts ("/dev/null", readonly = 1) -g.add_drive_opts ("/dev/null", iface = "virtio", format = "qcow2") +g.add_drive_opts ("/dev/null", iface = "virtio", format = "raw") g.close () |