Blame SOURCES/0072-v2v-vddk-Update-minimum-version-of-nbdkit-to-1.1.16.patch

a30de4
From f49162600c5ed54341ebeba9bc773fefc6b8153d Mon Sep 17 00:00:00 2001
a30de4
From: "Richard W.M. Jones" <rjones@redhat.com>
a30de4
Date: Tue, 7 Nov 2017 10:07:03 +0000
a30de4
Subject: [PATCH] v2v: vddk: Update minimum version of nbdkit to 1.1.16.
a30de4
MIME-Version: 1.0
a30de4
Content-Type: text/plain; charset=UTF-8
a30de4
Content-Transfer-Encoding: 8bit
a30de4
a30de4
While 1.1.14 will technically still work, 1.1.16 adds the
a30de4
‘selinux=yes|no’ flag to ‘--dump-config’ output.  It's also the more
a30de4
widely available and tested version at the time of writing.
a30de4
a30de4
Thanks: Ming Xie.
a30de4
(cherry picked from commit 415e9d82e901647438f68e4748720d88153778aa)
a30de4
---
a30de4
 v2v/input_libvirt_vddk.ml | 5 +++--
a30de4
 v2v/virt-v2v.pod          | 2 +-
a30de4
 2 files changed, 4 insertions(+), 3 deletions(-)
a30de4
a30de4
diff --git a/v2v/input_libvirt_vddk.ml b/v2v/input_libvirt_vddk.ml
a30de4
index 33b34bd2e..d1f2ae360 100644
a30de4
--- a/v2v/input_libvirt_vddk.ml
a30de4
+++ b/v2v/input_libvirt_vddk.ml
a30de4
@@ -61,13 +61,14 @@ class input_libvirt_vddk vddk_options password libvirt_uri parsed_uri guest =
a30de4
 
a30de4
     (* Check it's a new enough version.  The latest features we
a30de4
      * require are ‘--exit-with-parent’ and ‘--selinux-label’, both
a30de4
-     * added in 1.1.14.
a30de4
+     * added in 1.1.14.  (We use 1.1.16 as the minimum here because
a30de4
+     * it also adds the selinux=yes|no flag in --dump-config).
a30de4
      *)
a30de4
     let lines = external_command "nbdkit --help" in
a30de4
     let lines = String.concat " " lines in
a30de4
     if String.find lines "exit-with-parent" == -1 ||
a30de4
        String.find lines "selinux-label" == -1 then
a30de4
-      error (f_"nbdkit is not new enough, you need to upgrade to nbdkit ≥ 1.1.14")
a30de4
+      error (f_"nbdkit is not new enough, you need to upgrade to nbdkit ≥ 1.1.16")
a30de4
   in
a30de4
 
a30de4
   (* Check that the VDDK plugin is installed and working *)
a30de4
diff --git a/v2v/virt-v2v.pod b/v2v/virt-v2v.pod
a30de4
index 4f7ea8da6..48a20cccc 100644
a30de4
--- a/v2v/virt-v2v.pod
a30de4
+++ b/v2v/virt-v2v.pod
a30de4
@@ -1305,7 +1305,7 @@ library is permitted by the license.
a30de4
 =item 2.
a30de4
 
a30de4
 You must also compile nbdkit, enabling the VDDK plugin.  At least
a30de4
-nbdkit E<ge> 1.1.14 is required, but it is usually best to compile
a30de4
+nbdkit E<ge> 1.1.16 is required, but it is usually best to compile
a30de4
 from the git tree.
a30de4
 
a30de4
 =over 4
a30de4
-- 
a30de4
2.14.3
a30de4