Blame SOURCES/0082-RHEL-7-p2v-ignore-rhv-upload-driver-RHBZ-1590220.patch

e9bfca
From 66fa28613d7574cb2883478c541ed05e0f452058 Mon Sep 17 00:00:00 2001
e9bfca
From: Pino Toscano <ptoscano@redhat.com>
e9bfca
Date: Thu, 19 Jul 2018 13:30:17 +0200
e9bfca
Subject: [PATCH] RHEL 7: p2v: ignore 'rhv-upload' driver (RHBZ#1590220)
e9bfca
e9bfca
The 'rhv-upload' output mode requires few options, and virt-p2v does not
e9bfca
have the GUI bits for specifying them.
e9bfca
---
e9bfca
 p2v/ssh.c | 8 ++++++--
e9bfca
 1 file changed, 6 insertions(+), 2 deletions(-)
e9bfca
e9bfca
diff --git a/p2v/ssh.c b/p2v/ssh.c
e9bfca
index 15f53b692..654121a22 100644
e9bfca
--- a/p2v/ssh.c
e9bfca
+++ b/p2v/ssh.c
e9bfca
@@ -1021,8 +1021,12 @@ add_input_driver (const char *name, size_t len)
e9bfca
 static void
e9bfca
 add_output_driver (const char *name, size_t len)
e9bfca
 {
e9bfca
-  /* Ignore the 'vdsm' driver, since that should only be used by VDSM. */
e9bfca
-  if (len != 4 || memcmp (name, "vdsm", 4) != 0)
e9bfca
+  /* Ignore the 'vdsm' driver, since that should only be used by VDSM.
e9bfca
+   * Ignore the 'rhv-upload' driver, since we do not support passing all the
e9bfca
+   * options for it.
e9bfca
+   */
e9bfca
+  if ((len != 4 || memcmp (name, "vdsm", 4) != 0) &&
e9bfca
+      (len != 10 || memcmp (name, "rhv-upload", 10) != 0))
e9bfca
     add_option ("output", &output_drivers, name, len);
e9bfca
 }
e9bfca
 
e9bfca
-- 
8ff76f
2.20.1
e9bfca