mbox series

[v2,0/3] Add RW support for 4k sector size vhdx

Message ID 20241206000751.34694-1-takeshibaconsuzuki@gmail.com (mailing list archive)
Headers show
Series Add RW support for 4k sector size vhdx | expand

Message

Takeshi Suzuki Dec. 6, 2024, 12:07 a.m. UTC
The first patch adds support to read and write VHDX images with 4k logical
sector sizes. This is done by internally converting bdrv sectors of size 512 to
logical sectors. VHDX image creation with 4k logical sector size is NOT
implemented.

The second patch adds an iotest which reads and writes to a VHDX image with 4k
logical sector size.

The third patch adds logical sector size to VHDX specific image info.
    
```
Format specific information:
    logical sector size: 4096
```

Takeshi Suzuki (3):
  Add RW support for 4k sector size vhdx
  Add iotest for 4k sector size vhdx
  Add VHDX specific image info

 block/vhdx.c                                 |  97 +++++++++++++++++--
 qapi/block-core.json                         |  27 +++++-
 tests/qemu-iotests/315                       |  65 +++++++++++++
 tests/qemu-iotests/315.out                   |  20 ++++
 tests/qemu-iotests/sample_images/4k.vhdx.bz2 | Bin 0 -> 37834 bytes
 5 files changed, 201 insertions(+), 8 deletions(-)
 create mode 100644 tests/qemu-iotests/315
 create mode 100644 tests/qemu-iotests/315.out
 create mode 100644 tests/qemu-iotests/sample_images/4k.vhdx.bz2