]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: make SourceSpecBuilder::parse_source_spec() static
authorIlya Dryomov <idryomov@gmail.com>
Wed, 17 Jul 2024 13:06:33 +0000 (15:06 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 11 Aug 2024 17:13:55 +0000 (19:13 +0200)
commit3c5b19dee40a0d576609a787afef57bb1605e4ac
tree8e22ffa72f2a19d5802c660afd0ecd64ce597fbf
parent1b5402bc3f323a76acf661935b3651a1ed1af7f6
librbd/migration: make SourceSpecBuilder::parse_source_spec() static

In preparation for divorcing NativeFormat from FormatInterface and
changing when/how src_image_ctx is created, make parse_source_spec()
independent of src_image_ctx.  The "invalid source-spec JSON" error is
duplicated by the "failed to parse migration source-spec" error, so
just get rid of the former to spare having to pass CephContext to
parse_source_spec().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit f172fb97be9a6129be7cdbaa87346dc6c8e8ccb1)
src/librbd/migration/OpenSourceImageRequest.cc
src/librbd/migration/OpenSourceImageRequest.h
src/librbd/migration/SourceSpecBuilder.cc
src/librbd/migration/SourceSpecBuilder.h