cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From 25ed81be92c2171ceae075daa9823e01d7f90da3 Mon Sep 17 00:00:00 2001
9ae3a8
From: Jeffrey Cody <jcody@redhat.com>
9ae3a8
Date: Wed, 20 Nov 2013 19:44:04 +0100
9ae3a8
Subject: [PATCH 21/25] block: vhdx - fix comment typos in header, fix incorrect struct fields
9ae3a8
9ae3a8
RH-Author: Jeffrey Cody <jcody@redhat.com>
9ae3a8
Message-id: <65dd76628b4fc349d4a5f58f433e2e682881e85f.1384975172.git.jcody@redhat.com>
9ae3a8
Patchwork-id: 55813
9ae3a8
O-Subject: [RHEL7 qemu-kvm PATCH 21/26] block: vhdx - fix comment typos in header, fix incorrect struct fields
9ae3a8
Bugzilla: 879234
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Fam Zheng <famz@redhat.com>
9ae3a8
9ae3a8
VHDXPage83Data and VHDXParentLocatorHeader both incorrectly had their
9ae3a8
MSGUID fields set as arrays of 16.  This is incorrect (it stems from
9ae3a8
an early version where those fields were uint_8 arrays).  Those fields
9ae3a8
were, up to this patch, unused.
9ae3a8
9ae3a8
Also, there were a couple of typos and incorrect wording in comments,
9ae3a8
and those have been fixed up as well.
9ae3a8
9ae3a8
Signed-off-by: Jeff Cody <jcody@redhat.com>
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
(cherry picked from commit 61c02e5687dcc581c9d3413b61040b023adeaa9c)
9ae3a8
---
9ae3a8
 block/vhdx.h | 10 +++++-----
9ae3a8
 1 file changed, 5 insertions(+), 5 deletions(-)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 block/vhdx.h |   10 +++++-----
9ae3a8
 1 files changed, 5 insertions(+), 5 deletions(-)
9ae3a8
9ae3a8
diff --git a/block/vhdx.h b/block/vhdx.h
9ae3a8
index 0acad37..245547b 100644
9ae3a8
--- a/block/vhdx.h
9ae3a8
+++ b/block/vhdx.h
9ae3a8
@@ -58,7 +58,7 @@
9ae3a8
 typedef struct VHDXFileIdentifier {
9ae3a8
     uint64_t    signature;              /* "vhdxfile" in ASCII */
9ae3a8
     uint16_t    creator[256];           /* optional; utf-16 string to identify
9ae3a8
-                                           the vhdx file creator.  Diagnotistic
9ae3a8
+                                           the vhdx file creator.  Diagnostic
9ae3a8
                                            only */
9ae3a8
 } VHDXFileIdentifier;
9ae3a8
 
9ae3a8
@@ -114,8 +114,8 @@ typedef struct QEMU_PACKED VHDXHeader {
9ae3a8
                                            there is no valid log. If non-zero,
9ae3a8
                                            log entries with this guid are
9ae3a8
                                            valid. */
9ae3a8
-    uint16_t    log_version;            /* version of the log format. Mustn't be
9ae3a8
-                                           zero, unless log_guid is also zero */
9ae3a8
+    uint16_t    log_version;            /* version of the log format. Must be
9ae3a8
+                                           set to zero */
9ae3a8
     uint16_t    version;                /* version of the vhdx file.  Currently,
9ae3a8
                                            only supported version is "1" */
9ae3a8
     uint32_t    log_length;             /* length of the log.  Must be multiple
9ae3a8
@@ -281,7 +281,7 @@ typedef struct QEMU_PACKED VHDXVirtualDiskSize {
9ae3a8
 } VHDXVirtualDiskSize;
9ae3a8
 
9ae3a8
 typedef struct QEMU_PACKED VHDXPage83Data {
9ae3a8
-    MSGUID      page_83_data[16];       /* unique id for scsi devices that
9ae3a8
+    MSGUID      page_83_data;           /* unique id for scsi devices that
9ae3a8
                                            support page 0x83 */
9ae3a8
 } VHDXPage83Data;
9ae3a8
 
9ae3a8
@@ -296,7 +296,7 @@ typedef struct QEMU_PACKED VHDXVirtualDiskPhysicalSectorSize {
9ae3a8
 } VHDXVirtualDiskPhysicalSectorSize;
9ae3a8
 
9ae3a8
 typedef struct QEMU_PACKED VHDXParentLocatorHeader {
9ae3a8
-    MSGUID      locator_type[16];       /* type of the parent virtual disk. */
9ae3a8
+    MSGUID      locator_type;           /* type of the parent virtual disk. */
9ae3a8
     uint16_t    reserved;
9ae3a8
     uint16_t    key_value_count;        /* number of key/value pairs for this
9ae3a8
                                            locator */
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8