qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH] block/vpc: Support probing of fixed-size VHD images


From: Thomas Huth
Subject: Re: [RFC PATCH] block/vpc: Support probing of fixed-size VHD images
Date: Tue, 12 Oct 2021 13:55:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 19/05/2021 12.56, Kevin Wolf wrote:
[...]
We have a bug in vpc_open(), though: It sets the local variable
disk_type correctly, but other functions use s->footer.type instead and
we never check that it actually matches the disk type we think we're
opening.

So I think we need to add this check (and we need to add it even if we
don't change probing), and then the change to vpc_probe() is probably
okay.

Right, that looks like a potential problem. I now finally sent a patch here:

20211012082702.792259-1-thuth@redhat.com/">https://patchew.org/QEMU/20211012082702.792259-1-thuth@redhat.com/

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]