]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: add methods for protecting/unprotecting snapshots
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 3 Aug 2012 23:30:42 +0000 (16:30 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 9 Aug 2012 18:14:09 +0000 (11:14 -0700)
commit8d5f1e93daa617113e9655f5ebc26348324e55c8
tree4617ef1a56053a632bcc5b95567f5cb2d2a1ffc3
parent3499c0e503c8b3c97b78381cdd1fc34cbe0e965f
librbd: add methods for protecting/unprotecting snapshots

Unprotect will be more useful once integrated with the rbd_children object.
Right now we just check that a snapshot is protected before cloning it,
and that it's unprotected before removing it.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc
src/librbd/internal.h
src/librbd/librbd.cc
src/pybind/rbd.py
src/test/pybind/test_rbd.py
src/test/rbd/fsx.c
src/test/test_librbd.cc