From: Eric Blake Date: Tue, 28 Apr 2020 19:26:48 +0000 (-0500) Subject: qcow2: Tweak comment about bitmaps vs. resize X-Git-Tag: v5.1.0-rc0~141^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee1244a2e96288ba3c2f3a9a82b97f5617939d9f;p=thirdparty%2Fqemu.git qcow2: Tweak comment about bitmaps vs. resize Our comment did not actually match the code. Rewrite the comment to be less sensitive to any future changes to qcow2-bitmap.c that might implement scenarios that we currently reject. Signed-off-by: Eric Blake Reviewed-by: Max Reitz Message-Id: <20200428192648.749066-4-eblake@redhat.com> Signed-off-by: Max Reitz --- diff --git a/block/qcow2.c b/block/qcow2.c index 3e8b3d022b8..ad934109a81 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -3999,7 +3999,7 @@ static int coroutine_fn qcow2_co_truncate(BlockDriverState *bs, int64_t offset, goto fail; } - /* cannot proceed if image has bitmaps */ + /* See qcow2-bitmap.c for which bitmap scenarios prevent a resize. */ if (qcow2_truncate_bitmaps_check(bs, errp)) { ret = -ENOTSUP; goto fail;