On Wed, Jul 27, 2011 at 10:27 AM, Fam Zheng <famc...@gmail.com> wrote:
> @@ -415,6 +428,9 @@ static int vmdk_open_vmdk4(BlockDriverState *bs,
>                           l1_size,
>                           le32_to_cpu(header.num_gtes_per_gte),
>                           le64_to_cpu(header.granularity));
> +    extent->compressed =
> +        le16_to_cpu(header.compressAlgorithm) == VMDK4_COMPRESSION_DEFLATE;
> +    extent->has_marker = header.flags & VMDK4_FLAG_MARKER;

le32_to_cpu(header.flags)?

Stefan

Reply via email to