qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] d24f80: block/rbd: increase dynamically the i


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] d24f80: block/rbd: increase dynamically the image size
Date: Tue, 02 Jul 2019 10:21:53 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: d24f80234b39d2d5c0d91e63b5e4569d37b2399e
      
https://github.com/qemu/qemu/commit/d24f80234b39d2d5c0d91e63b5e4569d37b2399e
  Author: Stefano Garzarella <address@hidden>
  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 <address@hidden>
Message-id: address@hidden
Signed-off-by: Max Reitz <address@hidden>


  Commit: 170d3bd341b3955f10b40b4569f66bf3d4dbc4a0
      
https://github.com/qemu/qemu/commit/170d3bd341b3955f10b40b4569f66bf3d4dbc4a0
  Author: Andrey Shinkevich <address@hidden>
  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 <address@hidden>
Signed-off-by: Andrey Shinkevich <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
Message-id: address@hidden
[mreitz: Squashed in the following as a rebase on conflicting patches:]
Message-id: address@hidden
Signed-off-by: Max Reitz <address@hidden>


  Commit: 96a07d5bf447e616361acd4181a0fb24377483d9
      
https://github.com/qemu/qemu/commit/96a07d5bf447e616361acd4181a0fb24377483d9
  Author: Andrey Shinkevich <address@hidden>
  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 <address@hidden>
Signed-off-by: Andrey Shinkevich <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
Message-id: address@hidden
Reviewed-by: Max Reitz <address@hidden>
Signed-off-by: Max Reitz <address@hidden>


  Commit: c624b015bf14fe01f1e6452a36e63b3ea1ae4998
      
https://github.com/qemu/qemu/commit/c624b015bf14fe01f1e6452a36e63b3ea1ae4998
  Author: Andrey Shinkevich <address@hidden>
  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 <address@hidden>
Signed-off-by: Andrey Shinkevich <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Alberto Garcia <address@hidden>
Message-id: address@hidden
Reviewed-by: Max Reitz <address@hidden>
Signed-off-by: Max Reitz <address@hidden>


  Commit: bf1b9edeb06f7331781f68d7a1a9a76016cd75e2
      
https://github.com/qemu/qemu/commit/bf1b9edeb06f7331781f68d7a1a9a76016cd75e2
  Author: Peter Maydell <address@hidden>
  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 "address@hidden"
# gpg: Good signature from "Max Reitz <address@hidden>" [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 <address@hidden>


Compare: https://github.com/qemu/qemu/compare/8ef53cdb5079...bf1b9edeb06f



reply via email to

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