]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: copy API should not inherit v1 image format by default 35182/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 12 May 2020 14:16:36 +0000 (10:16 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 21 May 2020 17:47:34 +0000 (19:47 +0200)
commit38014a20c04fd735571e1a06de926ea614a2f2a6
tree657f0449f87eb193f82b89523663165162f23065
parentda5ac139f7df8981607c8843ebc36749a70752a4
librbd: copy API should not inherit v1 image format by default

When copying from a v1 image, by default the new destination image
would be created using the v1 format. Since the creation of v1 images
is disallowed, this has been updated to default to using the v2
image format.

Fixes: https://tracker.ceph.com/issues/45518
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 69b6d5997e8c6a11739e4d5a32564e61eb2f470f)

Conflicts:
src/librbd/internal.cc
- in nautilus, the call immediately preceding the change is
  "src->snap_lock.put_read()" whereas in master it is
  "src->image_lock.unlock_shared()"
src/librbd/internal.cc