
17 Apr
2016
17 Apr
'16
10:46 a.m.
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@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