Re: [PATCH v2] ZFS: Support sparse volumes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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@xxxxxxxxxx>
> ---
> 
> 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
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]