block/vpc: Pad VHDFooter, replace uint8_t[] buffers
commit275734e4794bb7a3d73f7517fbd769727f2479af
authorMarkus Armbruster <armbru@redhat.com>
Thu, 17 Dec 2020 16:20:01 +0000 (17 17:20 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2020 11:43:26 +0000 (18 12:43 +0100)
treee53e5cc83e626cd0f56bec9e82cc57024ee96cb6
parent3d6101a3f2c88176b3abfe60b0759a75243d0592
block/vpc: Pad VHDFooter, replace uint8_t[] buffers

Pad VHDFooter as specified in the "Virtual Hard Disk Image Format
Specification" version 1.0[*].  Change footer buffers from
uint8_t[HEADER_SIZE] to VHDFooter.  Their size remains the same.

The VHDFooter * variables pointing to a VHDFooter variable right next
to it are now silly.  Eliminate them, and shorten the remaining
variables' names.

Most variables pointing to s->footer are now also silly.  Eliminate
them, too.

[*] http://download.microsoft.com/download/f/f/e/ffef50a5-07dd-4cf8-aaa3-442c0673a029/Virtual%20Hard%20Disk%20Format%20Spec_10_18_06.doc

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201217162003.1102738-8-armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vpc.c