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 <[email protected]>
> ---
> 
> 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

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to