The main goal of this series is to introduce a new option "fat-size"
within the vvfat backend (patch 5).
This series also includes minor patches:
- patch 1 introduces another option to create unpartitionned disks.
- patch 2-4 are minor improvements easing the introducing of
"fat-size" option
This was tested on with a aarch64-linux kernel taken from
functional/aarch64/test-virt and on aarch64-qnx over raspi4b with a
workaround, not included here (the SD bus must be associated to the EMMC2
port instead of through GPIOs).
Changes since v1:
- patch 1:
- rename option "partitioned"
- add qapi entries
- add option in vvfat_strong_runtime_opts
- patch 2:
- make FAT12 1440K the default instead of FAT12 2880K
- patch 3:
- introduce rename VVFAT_SECTOR_SIZE
- replace BRDV_SECTOR_SIZE as those are actually VVFAT_SECTOR_SIZE
- introduce VVFAT_SECTOR_BITS
- patch 5
- rename option "fat-size"
- add qapi entries
- add option in vvfat_strong_runtime_opts
- replace floppy 1M/2M size limitation by 1440K or 2880K
- correctly round up when "fat-size" cannot be expressed by CHS values.
Clément Chigot (5):
vvfat: introduce partitioned option
vvfat: move fat_type check prior to size setup
vvfat: add a define for VVFAT_SECTOR_BITS and VVFAT_SECTOR_SIZE
vvfat: move size parameters within driver structure
vvfat: add support for "fat-size" options
block/vvfat.c | 353 +++++++++++++++++++++++++++++++------------
qapi/block-core.json | 16 +-
2 files changed, 273 insertions(+), 96 deletions(-)
--
2.43.0