search for: qemu_supports_null_co_device

Displaying 1 result from an estimated 1 matches for "qemu_supports_null_co_device".

2018 May 21
1
[PATCH] v2v: -o null: support older qemu-img (RHBZ#1580309)
...60 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/v2v/output_null.ml b/v2v/output_null.ml index b93d53dc5..5a5473c0d 100644 --- a/v2v/output_null.ml +++ b/v2v/output_null.ml @@ -42,7 +42,37 @@ open Utils * size instead. *) +let qemu_supports_null_co_device () = + (* We actually attempt to convert a raw file to the null-co device. *) + let tmp = Filename.temp_file "v2vqemunullcotst" ".img" in + Unix.truncate tmp 1024; + + let json = [ + "file.driver", JSON.String "null-co"; + "file.size", JSO...