mbox series

[v4,0/2] vpc: Read images exported from Azure correctly

Message ID 20241212134504.1983757-1-vkuznets@redhat.com (mailing list archive)
Headers show
Series vpc: Read images exported from Azure correctly | expand

Message

Vitaly Kuznetsov Dec. 12, 2024, 1:45 p.m. UTC
Changes since v3:
- Split the change into two patches [Philippe Mathieu-Daude].

It was found that 'qemu-nbd' is not able to work with some disk images
exported from Azure as it uses a currently unknown 'wa\0\0' 'creator app'
signature. QEMU currently supports two methods for determining the image
size: CHS and 'current_size' and the list of known 'creator app's is used
to decide between the two. Invert the logic in QEMU and make 'current_size'
the default as it seems that VPC and old QEMU are the only two legacy apps
where preferring CHS makes sense.

Vitaly Kuznetsov (2):
  vpc: Split off vpc_ignore_current_size() helper
  vpc: Read images exported from Azure correctly

 block/vpc.c | 65 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 35 insertions(+), 30 deletions(-)