]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd/migration: don't clone when flattening
authorOr Ozeri <oro@il.ibm.com>
Tue, 31 Jan 2023 11:08:22 +0000 (13:08 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 21 May 2025 15:27:16 +0000 (17:27 +0200)
commit73191f37f7ac70d601be35b3d9160d7fab1c8c8a
tree366d8e495b04d8f71e8712fdba6107628f1e0aef
parentf4181e0ae49ff303db170686dad56dfccfa0a8cc
librbd/migration: don't clone when flattening

When the flatten flag is set, instead of creating the
destination image by cloning, create it independently,
as the parent relation is unnecessary in this case.
This will be particularly useful when the migration source
is located in an external Ceph cluster, which will soon be
supported.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 1ee644d97104c9caaa83918b98b388888fc5497b)
src/librbd/api/Migration.cc