mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

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