qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] refresh filter parents when child was resized
@ 2025-06-30 11:27 Fiona Ebner
  2025-06-30 11:27 ` [PATCH 1/4] include/block/block_int-common: document when resize callback is used Fiona Ebner
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Fiona Ebner @ 2025-06-30 11:27 UTC (permalink / raw)
  To: qemu-block; +Cc: qemu-devel, kwolf, hreitz, stefanha, fam

Resizing a node below a filter would result in the filter still
reporting the old size. Implement a 'resize' callback for the
child_of_bds class, that refreshes filter parents recursively.

Fiona Ebner (4):
  include/block/block_int-common: document when resize callback is used
  block: make bdrv_co_parent_cb_resize() a proper IO API function
  block: implement 'resize' callback for child_of_bds class
  iotests: add test for resizing a node below filters

 block.c                                       | 12 +++
 block/io.c                                    |  9 +--
 include/block/block_int-common.h              |  5 +-
 include/block/block_int-io.h                  |  6 ++
 tests/qemu-iotests/tests/resize-below-filter  | 73 +++++++++++++++++++
 .../tests/resize-below-filter.out             |  5 ++
 6 files changed, 103 insertions(+), 7 deletions(-)
 create mode 100755 tests/qemu-iotests/tests/resize-below-filter
 create mode 100644 tests/qemu-iotests/tests/resize-below-filter.out

-- 
2.47.2




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-07-01 17:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 11:27 [PATCH 0/4] refresh filter parents when child was resized Fiona Ebner
2025-06-30 11:27 ` [PATCH 1/4] include/block/block_int-common: document when resize callback is used Fiona Ebner
2025-07-01 14:47   ` Hanna Czenczek
2025-06-30 11:27 ` [PATCH 2/4] block: make bdrv_co_parent_cb_resize() a proper IO API function Fiona Ebner
2025-07-01 14:47   ` Hanna Czenczek
2025-06-30 11:27 ` [PATCH 3/4] block: implement 'resize' callback for child_of_bds class Fiona Ebner
2025-07-01 14:46   ` Hanna Czenczek
2025-07-01 17:32     ` Kevin Wolf
2025-06-30 11:27 ` [PATCH 4/4] iotests: add test for resizing a node below filters Fiona Ebner
2025-07-01 14:53   ` Hanna Czenczek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).