|
|
9ae3a8 |
From 873247249112ac26ae02946d3f6a9484a85268a3 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Jeffrey Cody <jcody@redhat.com>
|
|
|
9ae3a8 |
Date: Tue, 16 Sep 2014 20:11:46 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 08/20] vdi: remove double conversion
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <843ab27113b00881159ce51034472849d8178804.1410897407.git.jcody@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 61212
|
|
|
9ae3a8 |
O-Subject: [PATCH qemu-kvm-rhel RHEL7.1 07/15] vdi: remove double conversion
|
|
|
9ae3a8 |
Bugzilla: 1098086
|
|
|
9ae3a8 |
RH-Acked-by: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
This should be a problem when running on big-endian machines.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Benoit Canet <benoit@irqsave.net>
|
|
|
9ae3a8 |
Reviewed-by: Stefan Weil <sw@weilnetz.de>
|
|
|
9ae3a8 |
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
9ae3a8 |
(cherry picked from commit 6998b6c11b4e8ca5e3c3e6bdbdf07a4f747d5d37)
|
|
|
9ae3a8 |
Signed-off-by: Jeff Cody <jcody@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
block/vdi.c | 1 -
|
|
|
9ae3a8 |
1 files changed, 0 insertions(+), 1 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/block/vdi.c b/block/vdi.c
|
|
|
9ae3a8 |
index fecfa14..0211023 100644
|
|
|
9ae3a8 |
--- a/block/vdi.c
|
|
|
9ae3a8 |
+++ b/block/vdi.c
|
|
|
9ae3a8 |
@@ -239,7 +239,6 @@ static void vdi_header_to_le(VdiHeader *header)
|
|
|
9ae3a8 |
cpu_to_le32s(&header->block_extra);
|
|
|
9ae3a8 |
cpu_to_le32s(&header->blocks_in_image);
|
|
|
9ae3a8 |
cpu_to_le32s(&header->blocks_allocated);
|
|
|
9ae3a8 |
- cpu_to_le32s(&header->blocks_allocated);
|
|
|
9ae3a8 |
uuid_convert(header->uuid_image);
|
|
|
9ae3a8 |
uuid_convert(header->uuid_last_snap);
|
|
|
9ae3a8 |
uuid_convert(header->uuid_link);
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|