vmdk: store fields of VmdkMetaData in cpu endian
commite304e8e5a05bc54c71c5f6fc76abd47410e59857
authorFam Zheng <famz@redhat.com>
Thu, 2 May 2013 02:25:26 +0000 (2 10:25 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 3 May 2013 08:33:46 +0000 (3 10:33 +0200)
tree801d5d2a2d5834c91146fe8271e042ec41b75218
parent95b0aa4231dfc827ddc189138d6502cbca66d2b6
vmdk: store fields of VmdkMetaData in cpu endian

Previously VmdkMetaData.offset is stored little endian while other
fields are cpu endian. This changes offset to cpu endian and convert
before writing to image.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vmdk.c