block: add read-only support to VHDX image format.
commit059e2fbbca484a68ac7fd99d1d76409294551586
authorJeff Cody <jcody@redhat.com>
Mon, 29 Apr 2013 18:48:19 +0000 (29 14:48 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 3 May 2013 08:31:58 +0000 (3 10:31 +0200)
treed9aec6880a4f9e763925becbfbb5662ecac562cf
parente8d4e5ffdb015959551726a5700c19b5d772ada4
block: add read-only support to VHDX image format.

This adds in read-only support to the VHDX image format.  This supports
reads for fixed-size, and dynamic sized VHDX images.

Differencing files are still unsupported.

The image must be opened without BDRV_O_RDWR set, because we do not
yet update the headers.  I.e., pass 'readonly=on' in the drive image
options from the QEMU commandline.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vhdx.c