diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-16 20:34:33 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-06-16 20:34:33 +0000 |
commit | 05efe46eaa337ce7680a22c5e034686957dc3032 (patch) | |
tree | 4d2c52c5cff9f58e4f9db0e1aa77d5e8ae3999e4 /vmdk.h | |
parent | dbda808a4ad5744fded19bf6a750e7aecbf993d8 (diff) | |
download | qemu-05efe46eaa337ce7680a22c5e034686957dc3032.zip qemu-05efe46eaa337ce7680a22c5e034686957dc3032.tar.gz qemu-05efe46eaa337ce7680a22c5e034686957dc3032.tar.bz2 |
VMware 4 disk images support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@927 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vmdk.h')
-rw-r--r-- | vmdk.h | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -32,12 +32,11 @@ struct cowdisk_header { - char magic[4]; /* COWD */ uint32_t version; uint32_t flags; uint32_t disk_sectors; uint32_t granularity; - uint32_t l1dir_sector; + uint32_t l1dir_offset; uint32_t l1dir_size; uint32_t file_sectors; uint32_t cylinders; @@ -50,3 +49,24 @@ struct cowdisk_header2 uint32_t parent_ts; uint32_t timestamp; }; + +/* based on vdk 3.1 10-11-2003 by Ken Kato */ + +struct vmdisk_header +{ + uint32_t version; + uint32_t flags; + + int64_t capacity; + int64_t granularity; + int64_t desc_offset; + int64_t desc_size; + int32_t num_gtes_per_gte; + int64_t rgd_offset; + int64_t gd_offset; + int64_t grain_offset; + + char filler[1]; + + char check_bytes[4]; +}; |