]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: add methods to set and get snapshot limits 9151/head
authorDouglas Fuller <dfuller@redhat.com>
Mon, 9 May 2016 18:21:21 +0000 (11:21 -0700)
committerDouglas Fuller <dfuller@redhat.com>
Tue, 7 Jun 2016 20:44:24 +0000 (13:44 -0700)
commit653bc453e3c8f1062cdbc4d0d8f77f623f48915b
tree6e86df8727ef314a0bfc5dee1d1c93ccba169fcd
parent8980f840780445fbb6ed28944147811fd0d8a05c
rbd: add methods to set and get snapshot limits

Add a subcommand, rbd snap limit set <image> --limit <integer>, to
limit the number of snapshots that may be made of a given image.
To clear, use rbd snap limit clear <image>. Add an omap
key, 'snap_limit' to the RBD header for implementation. Add object
classes to set and query the limit. Older OSDs will ignore the limit.

Fixes: http://tracker.ceph.com/issues/15706
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
31 files changed:
doc/man/8/rbd.rst
src/cls/rbd/cls_rbd.cc
src/cls/rbd/cls_rbd_client.cc
src/cls/rbd/cls_rbd_client.h
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/CMakeLists.txt
src/librbd/Makefile.am
src/librbd/Operations.cc
src/librbd/Operations.h
src/librbd/internal.cc
src/librbd/internal.h
src/librbd/journal/Replay.cc
src/librbd/journal/Replay.h
src/librbd/journal/Types.cc
src/librbd/journal/Types.h
src/librbd/librbd.cc
src/librbd/operation/SnapshotLimitRequest.cc [new file with mode: 0644]
src/librbd/operation/SnapshotLimitRequest.h [new file with mode: 0644]
src/pybind/rbd/rbd.pyx
src/test/cli/rbd/help.t
src/test/cls_rbd/test_cls_rbd.cc
src/test/librbd/mock/MockOperations.h
src/test/librbd/test_librbd.cc
src/test/pybind/test_rbd.py
src/test/run-rbd-unit-tests.sh
src/tools/rbd/ArgumentTypes.cc
src/tools/rbd/ArgumentTypes.h
src/tools/rbd/action/Info.cc
src/tools/rbd/action/Snap.cc
src/tracing/librbd.tp