[libvirt] [PATCH v2] ZFS: Support sparse volumes

Roman Bogorodskiy bogorodskiy at gmail.com
Sun Apr 17 14:46:53 UTC 2016


  Richard Laager wrote:

> By default, `zfs create -V ...` reserves space for the entire volsize,
> plus some extra (which attempts to account for overhead).
> 
> If `zfs create -s -V ...` is used instead, zvols are (fully) sparse.
> 
> A middle ground (partial allocation) can be achieved with
> `zfs create -s -o refreservation=... -V ...`.  Both libvirt and ZFS
> support this approach, so the ZFS storage backend should support it.
> 
> Signed-off-by: Richard Laager <rlaager at wiktel.com>
> ---
> 
> Notes:
>     This version does not clamp allocation to capacity.
> 
>  src/storage/storage_backend_zfs.c | 26 ++++++++++++++++++++++++--
>  1 file changed, 24 insertions(+), 2 deletions(-)

ACK and pushed, thanks!

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160417/6a1ae6ab/attachment-0001.sig>


More information about the libvir-list mailing list