]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/migration: allow native v2 images to be opened by name
authorJason Dillaman <dillaman@redhat.com>
Fri, 30 Oct 2020 14:27:32 +0000 (10:27 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 1 Nov 2020 14:22:38 +0000 (09:22 -0500)
commit8a9f6dde28e66ce84626f2a46d5e59dd55140e83
tree70c8a6d280ab5af78ffbaca3805b33b5ce22a3fa
parent9304f93bc63bc499b7e797f90d70d5b07aa3ac9c
librbd/migration: allow native v2 images to be opened by name

When in import-only mode, allow the source image to be opened by
name in case it's a V2 image format w/o its image id specified in
the JSON.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Migration.cc
src/librbd/migration/NativeFormat.cc
src/librbd/migration/NativeFormat.h
src/librbd/migration/OpenSourceImageRequest.cc
src/librbd/migration/SourceSpecBuilder.cc
src/librbd/migration/SourceSpecBuilder.h