]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: simplified retrieving snapshots from image header
authorJason Dillaman <dillaman@redhat.com>
Wed, 17 Jan 2018 18:40:13 +0000 (13:40 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 26 Jan 2018 15:32:40 +0000 (10:32 -0500)
commit4ad9d565a15c191fb24ff9832fb38b48a1ea82e9
tree4a06298ba6305bf0c235e108c4dda70c333cecf4
parent7cd13f8351c7b7cd3ba6548537ef0cceed9714cf
librbd: simplified retrieving snapshots from image header

Added a new cls 'snapshot_get' method that retrieves all snapshot
specific details to avoid the need to add a new cls method to
retrieve each individual snapshot data field.

The cls 'get_snapshot_namespace' method has been dropped since Luminous
clients will treat that as a user-generated snapshot (and that's all
that is supported by Luminous clients). The cls 'get_snapshot_timestamp'
method has been deprecated and can be removed once <=Luminous clients
are no longer supported.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
13 files changed:
src/cls/rbd/cls_rbd.cc
src/cls/rbd/cls_rbd.h
src/cls/rbd/cls_rbd_client.cc
src/cls/rbd/cls_rbd_client.h
src/cls/rbd/cls_rbd_types.cc
src/cls/rbd/cls_rbd_types.h
src/librbd/WatchNotifyTypes.cc
src/librbd/image/RefreshRequest.cc
src/librbd/image/RefreshRequest.h
src/librbd/journal/Types.cc
src/test/cls_rbd/test_cls_rbd.cc
src/test/encoding/types.h
src/test/librbd/image/test_mock_RefreshRequest.cc