Re: [PATCH v2 06/15] block: Fix crash on block_resize on inactive node

2025-02-03 Thread Stefan Hajnoczi
On Thu, Jan 30, 2025 at 06:12:37PM +0100, Kevin Wolf wrote: > In order for block_resize to fail gracefully on an inactive node instead > of crashing with an assertion failure in bdrv_co_write_req_prepare() > (called from bdrv_co_truncate()), we need to check for inactive nodes > also when they are

Re: [PATCH v2 06/15] block: Fix crash on block_resize on inactive node

2025-01-30 Thread Eric Blake
On Thu, Jan 30, 2025 at 06:12:37PM +0100, Kevin Wolf wrote: > In order for block_resize to fail gracefully on an inactive node instead > of crashing with an assertion failure in bdrv_co_write_req_prepare() > (called from bdrv_co_truncate()), we need to check for inactive nodes > also when they are

[PATCH v2 06/15] block: Fix crash on block_resize on inactive node

2025-01-30 Thread Kevin Wolf
In order for block_resize to fail gracefully on an inactive node instead of crashing with an assertion failure in bdrv_co_write_req_prepare() (called from bdrv_co_truncate()), we need to check for inactive nodes also when they are attached as a root node and make sure that BLK_PERM_RESIZE isn't amo