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

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