]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-img info: Add cache mode option
authorKevin Wolf <kwolf@redhat.com>
Fri, 24 Oct 2025 12:30:40 +0000 (14:30 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Oct 2025 11:10:10 +0000 (12:10 +0100)
commit911992fd6ec7a84c7cc82831b4bcd8a2ca5ccc76
tree140fb824bbdaadc79c6ee7e3e22e651d1d4611a8
parent5b4b3bfdfc28d2398f34194d260d6eef9a9048b4
qemu-img info: Add cache mode option

When querying block limits, different cache modes (in particular
O_DIRECT or not) can result in different limits. Add an option to
'qemu-img info' that allows the user to specify a cache mode, so that
they can get the block limits for the cache mode they intend to use with
their VM.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20251024123041.51254-5-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
docs/tools/qemu-img.rst
qemu-img-cmds.hx
qemu-img.c