2024-08-01 10:13:04 +00:00
|
|
|
|
From 3d01b1301476ddb77c7327ee86f2c8054c16226b Mon Sep 17 00:00:00 2001
|
2022-07-05 11:05:05 +00:00
|
|
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
|
|
Date: Tue, 5 Jul 2022 11:56:54 +0100
|
|
|
|
|
Subject: [PATCH] RHEL 9: -oo compressed: Remove nbdcopy version check and test
|
|
|
|
|
|
|
|
|
|
In RHEL 9 nbdcopy 1.12.4-2 will be sufficient (vs nbdcopy 1.13.5
|
|
|
|
|
upstream). We will enforce this through RPM dependencies and test it
|
|
|
|
|
separately. Thus remove the version check and test.
|
|
|
|
|
---
|
|
|
|
|
output/output.ml | 11 -----------
|
|
|
|
|
tests/Makefile.am | 1 -
|
|
|
|
|
2 files changed, 12 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/output/output.ml b/output/output.ml
|
2024-08-01 10:13:04 +00:00
|
|
|
|
index 53d4bb1b..14288bdc 100644
|
2022-07-05 11:05:05 +00:00
|
|
|
|
--- a/output/output.ml
|
|
|
|
|
+++ b/output/output.ml
|
2024-08-01 10:13:04 +00:00
|
|
|
|
@@ -86,17 +86,6 @@ let output_to_local_file ?(changeuid = fun f -> f ()) ?(compressed = false)
|
2022-07-05 11:05:05 +00:00
|
|
|
|
if output_format <> "qcow2" then
|
|
|
|
|
error (f_"‘-oo compressed’ is only allowed when the output format \
|
|
|
|
|
is a local qcow2-format file, i.e. ‘-of qcow2’");
|
|
|
|
|
-
|
|
|
|
|
- (* Check nbdcopy is new enough. This assumes that the version of
|
|
|
|
|
- * libnbd is the same as the version of nbdcopy, but parsing this
|
|
|
|
|
- * is easier. We can remove this check when we build-depend on
|
|
|
|
|
- * libnbd >= 1.14.
|
|
|
|
|
- *)
|
|
|
|
|
- let version =
|
|
|
|
|
- NBD.create () |> NBD.get_version |>
|
|
|
|
|
- String.nsplit "." |> List.map int_of_string in
|
|
|
|
|
- if version < [1; 13; 5] then
|
|
|
|
|
- error (f_"-oo compressed option requires nbdcopy >= 1.13.5")
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
let g = open_guestfs () in
|
|
|
|
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
2024-03-15 11:10:18 +00:00
|
|
|
|
index 4bfa1c7a..f38342f0 100644
|
2022-07-05 11:05:05 +00:00
|
|
|
|
--- a/tests/Makefile.am
|
|
|
|
|
+++ b/tests/Makefile.am
|
2024-03-15 11:10:18 +00:00
|
|
|
|
@@ -86,7 +86,6 @@ TESTS = \
|
|
|
|
|
test-v2v-o-kubevirt-fedora.sh \
|
|
|
|
|
test-v2v-o-kubevirt-windows.sh \
|
2022-07-05 11:05:05 +00:00
|
|
|
|
test-v2v-o-libvirt.sh \
|
|
|
|
|
- test-v2v-o-local-qcow2-compressed.sh \
|
|
|
|
|
test-v2v-o-null.sh \
|
|
|
|
|
test-v2v-o-openstack.sh \
|
|
|
|
|
test-v2v-o-qemu.sh \
|