mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

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

97ae69
From 66fa28613d7574cb2883478c541ed05e0f452058 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
97ae69
index 15f53b692..654121a22 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
-- 
97ae69
2.17.1
97ae69