]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: introduce rbd_group_snap_namespace_type_t enum 59883/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 19 Sep 2024 12:07:47 +0000 (14:07 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 20 Sep 2024 07:01:17 +0000 (09:01 +0200)
commit45cdd3786fcf2c979f067fc582e03d197a22350d
tree19e91561b795dd231e0cd0a0c4230ba874ce3582
parent8b3860dccc026d9f8debae5db75f721326a48894
librbd: introduce rbd_group_snap_namespace_type_t enum

Commit e5ccce14c4b0 ("rbd: add group snap info command") added
a commented out field in rbd_group_snap_info2_t struct but didn't
define the corresponding enum, expecting it to be brought in with the
patchset that introduces mirror group snapshots.  That work is still
in progress, but there is already interest in the new command and APIs
that use rbd_group_snap_info2_t struct and even a backport request.

Finalize the struct definition to avoid a breaking change for those
users in the future.  RBD_GROUP_SNAP_NAMESPACE_TYPE_USER can be treated
as dummy in terms of meaning until RBD_GROUP_SNAP_NAMESPACE_TYPE_MIRROR
is added.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/api/Group.cc
src/librbd/librbd.cc
src/pybind/rbd/c_rbd.pxd
src/pybind/rbd/mock_rbd.pxi
src/pybind/rbd/rbd.pyx
src/test/librbd/test_Groups.cc
src/test/pybind/test_rbd.py