Re: [PATCH for-5.0 v2 02/23] blockdev: Allow resizing everywhere

2019-12-09 Thread Max Reitz
On 06.12.19 15:04, Alberto Garcia wrote: > On Mon 11 Nov 2019 05:01:55 PM CET, Max Reitz wrote: >> @@ -3177,11 +3177,6 @@ void qmp_block_resize(bool has_device, const char >> *device, >> aio_context = bdrv_get_aio_context(bs); >> aio_context_acquire(aio_context); >> >> -if

Re: [PATCH for-5.0 v2 02/23] blockdev: Allow resizing everywhere

2019-12-06 Thread Alberto Garcia
On Mon 11 Nov 2019 05:01:55 PM CET, Max Reitz wrote: > @@ -3177,11 +3177,6 @@ void qmp_block_resize(bool has_device, const char > *device, > aio_context = bdrv_get_aio_context(bs); > aio_context_acquire(aio_context); > > -if (!bdrv_is_first_non_filter(bs)) { > -

[PATCH for-5.0 v2 02/23] blockdev: Allow resizing everywhere

2019-11-11 Thread Max Reitz
Block nodes that do not allow resizing should not share BLK_PERM_RESIZE. It does not matter whether they are the first non-filter in their chain or not. Signed-off-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy --- blockdev.c | 5 - 1 file changed, 5 deletions(-) diff --git