]> git-server-git.apps.pok.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>
Wed, 22 Jul 2020 18:19:56 +0000 (14:19 -0400)
commit0e3add97ff1f919d81a1c644b150672cbd691c84
treef7e6b9cc8a41901c6c2fefcf83868cb6d7ebd625
parent3a03673fbda0ae00db071cb87d2ecfc1ad4a6eac
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>
(cherry picked from commit ae6dd86b22e928dc23a385faf41cf76b0d293576)

Conflicts:
src/librbd/api/Io.h/cc: logic exists in ImageRequestWQ files
src/librbd/librbd.cc: trivial resolution due missing api::Io
src/test/librbd/test_librbd.cc: trivial resolution
src/include/rbd/librbd.h
src/include/rbd/librbd.hpp
src/librbd/io/ImageRequestWQ.cc
src/librbd/io/ImageRequestWQ.h
src/librbd/librbd.cc
src/test/librbd/test_librbd.cc