Branch: refs/heads/master Home: https://github.com/qemu/qemu Commit: d24f80234b39d2d5c0d91e63b5e4569d37b2399e https://github.com/qemu/qemu/commit/d24f80234b39d2d5c0d91e63b5e4569d37b2399e Author: Stefano Garzarella <sgarz...@redhat.com> Date: 2019-07-02 (Tue, 02 Jul 2019)
Changed paths: M block/rbd.c Log Message: ----------- block/rbd: increase dynamically the image size RBD APIs don't allow us to write more than the size set with rbd_create() or rbd_resize(). In order to support growing images (eg. qcow2), we resize the image before write operations that exceed the current size. Signed-off-by: Stefano Garzarella <sgarz...@redhat.com> Message-id: 20190509145927.293369-1-sgarz...@redhat.com Signed-off-by: Max Reitz <mre...@redhat.com> Commit: 170d3bd341b3955f10b40b4569f66bf3d4dbc4a0 https://github.com/qemu/qemu/commit/170d3bd341b3955f10b40b4569f66bf3d4dbc4a0 Author: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Date: 2019-07-02 (Tue, 02 Jul 2019) Changed paths: M block/commit.c M block/io.c M block/mirror.c M block/qcow2.c M block/replication.c M block/stream.c M include/block/block.h M qemu-img.c Log Message: ----------- block: include base when checking image chain for block allocation This patch is used in the 'block/stream: introduce a bottom node' that is following. Instead of the base node, the caller may pass the node that has the base as its backing image to the function bdrv_is_allocated_above() with a new parameter include_base = true and get rid of the dependency on the base that may change during commit/stream parallel jobs. Now, if the specified base is not found in the backing image chain, the QEMU will abort. Suggested-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> Signed-off-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> Reviewed-by: Alberto Garcia <be...@igalia.com> Message-id: 1559152576-281803-2-git-send-email-andrey.shinkev...@virtuozzo.com [mreitz: Squashed in the following as a rebase on conflicting patches:] Message-id: e3cf99ae-62e9-8b6e-5a06-d3c8b9363...@redhat.com Signed-off-by: Max Reitz <mre...@redhat.com> Commit: 96a07d5bf447e616361acd4181a0fb24377483d9 https://github.com/qemu/qemu/commit/96a07d5bf447e616361acd4181a0fb24377483d9 Author: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Date: 2019-07-02 (Tue, 02 Jul 2019) Changed paths: M block/stream.c Log Message: ----------- block/stream: refactor stream_run: drop goto The goto is unnecessary in the stream_run() since the common exit code was removed in the commit eb23654dbe43b549ea2a9ebff9d8e: "jobs: utilize job_exit shim". Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> Signed-off-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Reviewed-by: Alberto Garcia <be...@igalia.com> Reviewed-by: Max Reitz <mre...@redhat.com> Message-id: 1559152576-281803-3-git-send-email-andrey.shinkev...@virtuozzo.com Reviewed-by: Max Reitz <mre...@redhat.com> Signed-off-by: Max Reitz <mre...@redhat.com> Commit: c624b015bf14fe01f1e6452a36e63b3ea1ae4998 https://github.com/qemu/qemu/commit/c624b015bf14fe01f1e6452a36e63b3ea1ae4998 Author: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Date: 2019-07-02 (Tue, 02 Jul 2019) Changed paths: M block/stream.c M tests/qemu-iotests/245 Log Message: ----------- block/stream: introduce a bottom node The bottom node is the intermediate block device that has the base as its backing image. It is used instead of the base node while a block stream job is running to avoid dependency on the base that may change due to the parallel jobs. The change may take place due to a filter node as well that is inserted between the base and the intermediate bottom node. It occurs when the base node is the top one for another commit or stream job. After the introduction of the bottom node, don't freeze its backing child, that's the base, anymore. Suggested-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> Signed-off-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com> Reviewed-by: Alberto Garcia <be...@igalia.com> Message-id: 1559152576-281803-4-git-send-email-andrey.shinkev...@virtuozzo.com Reviewed-by: Max Reitz <mre...@redhat.com> Signed-off-by: Max Reitz <mre...@redhat.com> Commit: bf1b9edeb06f7331781f68d7a1a9a76016cd75e2 https://github.com/qemu/qemu/commit/bf1b9edeb06f7331781f68d7a1a9a76016cd75e2 Author: Peter Maydell <peter.mayd...@linaro.org> Date: 2019-07-02 (Tue, 02 Jul 2019) Changed paths: M block/commit.c M block/io.c M block/mirror.c M block/qcow2.c M block/rbd.c M block/replication.c M block/stream.c M include/block/block.h M qemu-img.c M tests/qemu-iotests/245 Log Message: ----------- Merge remote-tracking branch 'remotes/maxreitz/tags/pull-block-2019-07-02' into staging Block patches for 4.1-rc0: - The stream job no longer relies on a fixed base node - The rbd block driver can now accomodate growing formats like qcow2 # gpg: Signature made Tue 02 Jul 2019 02:56:06 BST # gpg: using RSA key 91BEB60A30DB3E8857D11829F407DB0061D5CF40 # gpg: issuer "mre...@redhat.com" # gpg: Good signature from "Max Reitz <mre...@redhat.com>" [full] # Primary key fingerprint: 91BE B60A 30DB 3E88 57D1 1829 F407 DB00 61D5 CF40 * remotes/maxreitz/tags/pull-block-2019-07-02: block/stream: introduce a bottom node block/stream: refactor stream_run: drop goto block: include base when checking image chain for block allocation block/rbd: increase dynamically the image size Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> Compare: https://github.com/qemu/qemu/compare/8ef53cdb5079...bf1b9edeb06f