On Tue, Apr 23, 2013 at 10:24:23AM -0400, Jeff Cody wrote:
> +static void vhdx_block_translate(BDRVVHDXState *s, int64_t sector_num,
> + int nb_sectors, vhdx_sector_info *sinfo)
> +{
> +uint32_t block_offset;
> +
> +sinfo->bat_idx = sector_num >> s->sectors_p
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