]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: move away from util::create_ioctx() in NativeFormat
authorIlya Dryomov <idryomov@gmail.com>
Mon, 5 Aug 2024 15:52:10 +0000 (17:52 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 21 May 2025 15:27:16 +0000 (17:27 +0200)
commit6d32ae673953a17367c7f8c23a86fb87d3497edd
tree610ce5cbd82ca1a82360b1760da9ad453d479b06
parent5d9e5c08a401d61ed28226be07040b9eefb43c22
librbd/migration: move away from util::create_ioctx() in NativeFormat

This is another step towards supporting migration from external
clusters, where creating an IoCtx from a Rados instance that has
nothing to do with dst_io_ctx would be needed.  It also allows to
get rid of a pool lookup in the middle of parsing code.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 7986662157491419d366de3dd0070553abb9e1c8)

Conflicts:
src/librbd/migration/NativeFormat.cc [ commit 8e58a52a408b
  ("librbd/migration: don't include ImageState.h in formats")
  was backported to squid out of order ]
src/librbd/migration/NativeFormat.cc