]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: add 'write_zeroes' public C/C++ API methods
authorJason Dillaman <dillaman@redhat.com>
Tue, 30 Jun 2020 12:44:38 +0000 (08:44 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 30 Jun 2020 21:53:24 +0000 (17:53 -0400)
commitae6dd86b22e928dc23a385faf41cf76b0d293576
treedeeb957e9f13a5a88245a1091460f55cdcaaa27c
parent1169dee2592ec41777207fcf5742b5e936a100fc
librbd: add 'write_zeroes' public C/C++ API methods

Unlike the existing 'discard' option which is more of a hint to
attempt to release space, the new 'write_zeroes' APIs will ensure
that the entire provided extent is fully zeroed.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/api/Io.cc
src/librbd/api/Io.h
src/librbd/librbd.cc
src/test/librbd/test_librbd.cc