rbd: add Sparsify implementing rbd_sparsify

The sparsify function can be used to make an image sparse by replacing
runs of zeros with holes. This change adds a wrapper for the basic
rbd_sparsify function and accompanying tests.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-08-20 14:40:49 -04:00 committed by John Mulligan
parent 176a163c3c
commit dbf20aea0a
2 changed files with 60 additions and 0 deletions