From: Markus Armbruster <armbru@redhat.com>
To: "Clément Chigot" <chigot@adacore.com>
Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, kwolf@redhat.com,
hreitz@redhat.com, eblake@redhat.com
Subject: Re: [PATCH v2 5/5] vvfat: add support for "fat-size" options
Date: Mon, 10 Nov 2025 11:13:38 +0100 [thread overview]
Message-ID: <87zf8umbzh.fsf@pond.sub.org> (raw)
In-Reply-To: <20251107145327.539481-6-chigot@adacore.com> ("Clément Chigot"'s message of "Fri, 7 Nov 2025 15:53:27 +0100")
Clément Chigot <chigot@adacore.com> writes:
> This allows more flexibility to vvfat backend. The values of "Number of
> Heads" and "Sectors per track" are based on SD specifications Part 2.
>
> Due to the FAT architecture, not all sizes are reachable. Therefore, it
> could be round up to the closest available size.
>
> FAT32 has not been adjusted and thus still default to 504 Mib.
>
> For floppy, only 1440 Kib and 2880 Kib are supported.
>
> Signed-off-by: Clément Chigot <chigot@adacore.com>
[...]
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 8a479ba090..0bcb360320 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -3478,11 +3478,17 @@
> # (default: true)
> # (since 10.2)
> #
> +# @fat-size: size of the device in bytes. Due to FAT underlying
> +# architecture, this size can be rounded up to the closest valid
> +# size.
> +# (since 10.2)
> +#
Can you explain again why you moved from @size to @fat-size?
I assume you dropped the horrible special floppy sizes because ordinary
sizes suffice. Correct?
> # Since: 2.9
> ##
> { 'struct': 'BlockdevOptionsVVFAT',
> 'data': { 'dir': 'str', '*fat-type': 'int', '*floppy': 'bool',
> - '*label': 'str', '*rw': 'bool', '*partitioned': 'bool' } }
> + '*label': 'str', '*rw': 'bool', '*partitioned': 'bool',
> + 'fat-size': 'int' } }
>
> ##
> # @BlockdevOptionsGenericFormat:
next prev parent reply other threads:[~2025-11-10 10:24 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 14:53 [PATCH v2 0/5] block/vvfat: introduce "fat-size" option Clément Chigot
2025-11-07 14:53 ` [PATCH v2 1/5] vvfat: introduce partitioned option Clément Chigot
2025-11-10 10:07 ` Markus Armbruster
2025-11-10 11:09 ` Clément Chigot
2025-11-10 12:55 ` BALATON Zoltan
2025-11-10 13:20 ` Markus Armbruster
2025-11-10 15:08 ` Kevin Wolf
2025-11-10 15:25 ` BALATON Zoltan
2025-11-11 7:43 ` Markus Armbruster
2025-11-14 8:20 ` Clément Chigot
2025-11-14 13:25 ` BALATON Zoltan
2025-11-14 13:47 ` Clément Chigot
2025-11-26 9:59 ` Clément Chigot
2025-11-26 19:27 ` Kevin Wolf
2025-11-07 14:53 ` [PATCH v2 2/5] vvfat: move fat_type check prior to size setup Clément Chigot
2025-11-10 10:09 ` Markus Armbruster
2025-11-10 11:15 ` Clément Chigot
2025-11-10 13:13 ` Markus Armbruster
2025-11-10 15:29 ` Kevin Wolf
2025-11-11 8:16 ` Markus Armbruster
2025-11-11 8:17 ` Markus Armbruster
2025-11-07 14:53 ` [PATCH v2 3/5] vvfat: add a define for VVFAT_SECTOR_BITS and VVFAT_SECTOR_SIZE Clément Chigot
2025-11-07 14:53 ` [PATCH v2 4/5] vvfat: move size parameters within driver structure Clément Chigot
2025-11-07 14:53 ` [PATCH v2 5/5] vvfat: add support for "fat-size" options Clément Chigot
2025-11-10 10:13 ` Markus Armbruster [this message]
2025-11-10 12:46 ` Clément Chigot
2025-11-10 13:09 ` Markus Armbruster
2025-11-10 13:26 ` Clément Chigot
2025-11-10 13:42 ` Markus Armbruster
2025-11-10 14:04 ` Clément Chigot
2025-11-10 15:20 ` Kevin Wolf
2025-11-10 15:36 ` BALATON Zoltan
2025-11-10 16:31 ` Kevin Wolf
2025-11-10 21:36 ` BALATON Zoltan
2025-11-12 9:50 ` Clément Chigot
2025-11-12 12:29 ` Kevin Wolf
2025-11-11 7:59 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zf8umbzh.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=chigot@adacore.com \
--cc=eblake@redhat.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.