]> 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>
Sun, 18 Aug 2024 19:34:09 +0000 (21:34 +0200)
commit1ee644d97104c9caaa83918b98b388888fc5497b
treeb4a65dc0582a9f67c49a9d72180cf74e1481cb47
parentd5a061e68bd1be3cc3164ac6ec874a9638bb2284
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>
src/librbd/api/Migration.cc