qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 02/21] blockdev: Allow resizing everywhere


From: Max Reitz
Subject: [PATCH v3 02/21] blockdev: Allow resizing everywhere
Date: Thu, 30 Jan 2020 22:44:12 +0100

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 <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
 blockdev.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/blockdev.c b/blockdev.c
index d47ed8e569..bdd66d6c48 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -3335,11 +3335,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)) {
-        error_setg(errp, QERR_FEATURE_DISABLED, "resize");
-        goto out;
-    }
-
     if (size < 0) {
         error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "size", "a >0 size");
         goto out;
-- 
2.24.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]