Blame SOURCES/0081-RHEL-8-p2v-ignore-rhv-upload-driver-RHBZ-1590220.patch

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