]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration/NativeFormat: do pool lookup instead of creating io_ctx
authorIlya Dryomov <idryomov@gmail.com>
Wed, 17 Jul 2024 18:05:08 +0000 (20:05 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 30 Jul 2024 21:05:51 +0000 (23:05 +0200)
commit1ba9a32598f50073b574b4649736d76b678a1c58
tree93e8de117071f3c66abe30d81128e7a09afb90f2
parentf172fb97be9a6129be7cdbaa87346dc6c8e8ccb1
librbd/migration/NativeFormat: do pool lookup instead of creating io_ctx

A Rados instance is sufficient to map the pool name to the pool ID,
no need to involve an IoCtx instance as well.  While at it, report
distinctive errors for a non-existing pool and an invalid JSON value
for pool_name key cases.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/librbd/migration/NativeFormat.cc