]> xenbits.xensource.com Git - libvirt.git/commit
rbd: Add support for wiping RBD volumes using TRIM.
authorWido den Hollander <wido@widodh.nl>
Wed, 27 Jan 2016 10:20:08 +0000 (11:20 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 29 Jan 2016 16:11:32 +0000 (11:11 -0500)
commit34872ca4619fc97984e8cd7797a1ae91593b091f
tree1f2117b620d30a58c2f648b88343729baa78019f
parent63cdc92f046694620e96538ee97360769922f913
rbd: Add support for wiping RBD volumes using TRIM.

Using VIR_STORAGE_VOL_WIPE_ALG_TRIM a RBD volume can be trimmed down
to 0 bytes using rbd_discard()

Effectively all the data on the volume will be lost/gone, but the volume
remains available for use afterwards.

Starting at offset 0 the storage pool will call rbd_discard() in stripe
size * count increments which is usually 4MB. Stripe size being 4MB and
count 1.

rbd_discard() is available since Ceph version Dumpling (0.67) which dates
back to August 2013.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/storage/storage_backend_rbd.c