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