[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/22] blockdev: Allow resizing everywhere
From: |
Max Reitz |
Subject: |
[PATCH 02/22] blockdev: Allow resizing everywhere |
Date: |
Fri, 20 Sep 2019 17:27:44 +0200 |
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>
---
blockdev.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index b62b33dc03..0420bc29be 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -3198,11 +3198,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.21.0
- [PATCH 00/22] block: Fix check_to_replace_node(), Max Reitz, 2019/09/20
- [PATCH 01/22] blockdev: Allow external snapshots everywhere, Max Reitz, 2019/09/20
- [PATCH 03/22] block: Drop bdrv_is_first_non_filter(), Max Reitz, 2019/09/20
- [PATCH 02/22] blockdev: Allow resizing everywhere,
Max Reitz <=
- [PATCH 04/22] iotests: Let 041 use -blockdev for quorum children, Max Reitz, 2019/09/20
- [PATCH 05/22] quorum: Fix child permissions, Max Reitz, 2019/09/20
- [PATCH 06/22] block: Add bdrv_recurse_can_replace(), Max Reitz, 2019/09/20
- [PATCH 09/22] quorum: Add QuorumChild.to_be_replaced, Max Reitz, 2019/09/20