Blame SOURCES/0020-v2v-Set-DISKTYPE-2-in-RHV-and-VDSM-meta-files-RHBZ-1.patch

46b2f6
From 2eeada3ec57760f57d5da473f32b359c6b55c616 Mon Sep 17 00:00:00 2001
46b2f6
From: Nir Soffer <nirsof@gmail.com>
46b2f6
Date: Mon, 2 Sep 2019 17:45:13 +0100
46b2f6
Subject: [PATCH] v2v: Set DISKTYPE=2 in RHV and VDSM meta files
46b2f6
 (RHBZ#1746699).
46b2f6
46b2f6
Added in virt-p2v commit:
46b2f6
46b2f6
  commit e83b6f50af34ce650063ecc520bfabab400e8e73
46b2f6
  Author: Matthew Booth <mbooth@redhat.com>
46b2f6
  Date:   Fri Mar 26 09:40:20 2010 +0000
46b2f6
46b2f6
    Add export to RHEV
46b2f6
46b2f6
    Allow guests to be written to a RHEV NFS export storage domain.
46b2f6
46b2f6
    Add 'rhev' output method and -osd command-line option.
46b2f6
    Example command line:
46b2f6
46b2f6
     virt-v2v -f virt-v2v.conf -ic 'esx://yellow.rhev.marston/' \
46b2f6
              -o rhev -osd blue:/export/export RHEL3-32
46b2f6
46b2f6
    This will connect to an ESX server and write the guest 'RHEL3-32' to
46b2f6
    blue:/export/export, which is a pre-initialised RHEV export storage domain.
46b2f6
46b2f6
(cherry picked from commit fcfdbc9420b07e3003df38481afb9ccd22045e1a)
46b2f6
---
46b2f6
 v2v/create_ovf.ml | 2 +-
46b2f6
 1 file changed, 1 insertion(+), 1 deletion(-)
46b2f6
46b2f6
diff --git a/v2v/create_ovf.ml b/v2v/create_ovf.ml
46b2f6
index 91ff5198d..9aad5dd15 100644
46b2f6
--- a/v2v/create_ovf.ml
46b2f6
+++ b/v2v/create_ovf.ml
46b2f6
@@ -501,7 +501,7 @@ let create_meta_files output_alloc sd_uuid image_uuids overlays =
46b2f6
       bpf "CTIME=%.0f\n" time;
46b2f6
       bpf "MTIME=%.0f\n" time;
46b2f6
       bpf "IMAGE=%s\n" image_uuid;
46b2f6
-      bpf "DISKTYPE=1\n";
46b2f6
+      bpf "DISKTYPE=2\n";
46b2f6
       bpf "PUUID=00000000-0000-0000-0000-000000000000\n";
46b2f6
       bpf "LEGALITY=LEGAL\n";
46b2f6
       bpf "POOL_UUID=\n";
46b2f6
-- 
b155d0
2.26.2
46b2f6