]> 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>
Sat, 10 Aug 2024 20:56:20 +0000 (22:56 +0200)
commit7e6a2afe235f3ed7a390b398ea07a5d4433ee460
tree95b1c4ab210378978c71cd21edcbdf02f2e457b6
parent05ed1999c9e86b5a370a77364ea65bb017daf13c
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>
(cherry picked from commit 1ba9a32598f50073b574b4649736d76b678a1c58)
src/librbd/migration/NativeFormat.cc