Patchwork [1/2] vmdk: Fix header structure

login
register
mail settings
Submitter Kevin Wolf
Date Aug. 16, 2012, 8:54 a.m.
Message ID <1345107271-10154-2-git-send-email-kwolf@redhat.com>
Download mbox | patch
Permalink /patch/177922/
State New
Headers show

Comments

Kevin Wolf - Aug. 16, 2012, 8:54 a.m.
Commit bb45ded9 swapped gd_offset and rgd_offset. This is wrong.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 block/vmdk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/block/vmdk.c b/block/vmdk.c
index daee426..9648398 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -57,8 +57,8 @@  typedef struct {
     int64_t desc_offset;
     int64_t desc_size;
     int32_t num_gtes_per_gte;
-    int64_t gd_offset;
     int64_t rgd_offset;
+    int64_t gd_offset;
     int64_t grain_offset;
     char filler[1];
     char check_bytes[4];