mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

6b9fda
From 03a9d67f1c101b883838a8f20f7173d12d6b715e 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
-- 
6b9fda
2.21.0
d0ea73