]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: API for quiesce callbacks
authorMykola Golub <mgolub@suse.com>
Fri, 27 Mar 2020 06:53:31 +0000 (06:53 +0000)
committerMykola Golub <mgolub@suse.com>
Tue, 5 May 2020 16:02:09 +0000 (17:02 +0100)
commit269f4d233a17cffc774897660cf60f1b0acf077e
tree8dea315e772cca216f34452ef474f492f8722f0b
parent34bde6542f832cba4776964878f997ce7cbf196b
librbd: API for quiesce callbacks

The callbacks are fired by librbd before/after creating a
snapshot. The callback users like QEMU could attempt to freeze
the FS before allowing librbd to actually perform the snapshot.

Signed-off-by: Mykola Golub <mgolub@suse.com>
17 files changed:
src/common/options.cc
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/ImageState.cc
src/librbd/ImageState.h
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h
src/librbd/Operations.cc
src/librbd/WatchNotifyTypes.cc
src/librbd/WatchNotifyTypes.h
src/librbd/librbd.cc
src/librbd/operation/SnapshotCreateRequest.cc
src/librbd/operation/SnapshotCreateRequest.h
src/test/librbd/mock/MockImageState.h
src/test/librbd/mock/MockImageWatcher.h
src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc
src/test/librbd/test_librbd.cc