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

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