]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: always open first parent image if it exists for a snapshot 23733/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 17 Aug 2018 14:17:55 +0000 (10:17 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 27 Aug 2018 21:32:08 +0000 (17:32 -0400)
commitbed4857487b041de50227a685179cfd997b36874
treee544aafcb3065b30e64565221aaf60ebc3843fd5
parent8b43b548a1ed6da49d82283f65ec70c9e3fe94fa
librbd: always open first parent image if it exists for a snapshot

The deep-copy and migration features required force-opening the
parent image just in case the deep-flatten feature wasn't enabled
on an image. This change simplies the code by always opening the
direct parent image, which really only matters if a cloned image
has snapshots w/o the deep-flatten feature.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
14 files changed:
src/librbd/ImageCtx.h
src/librbd/Types.h
src/librbd/deep_copy/ImageCopyRequest.cc
src/librbd/deep_copy/ImageCopyRequest.h
src/librbd/deep_copy/ObjectCopyRequest.cc
src/librbd/deep_copy/ObjectCopyRequest.h
src/librbd/image/CloseRequest.cc
src/librbd/image/CloseRequest.h
src/librbd/image/RefreshParentRequest.cc
src/librbd/image/RefreshParentRequest.h
src/librbd/io/CopyupRequest.cc
src/librbd/operation/MigrateRequest.cc
src/test/librbd/deep_copy/test_mock_ImageCopyRequest.cc
src/test/librbd/deep_copy/test_mock_ObjectCopyRequest.cc