]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ZFS: Support sparse volumes
authorRichard Laager <rlaager@wiktel.com>
Thu, 24 Mar 2016 05:11:11 +0000 (00:11 -0500)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 17 Apr 2016 04:32:27 +0000 (07:32 +0300)
commitc81bba4f6f925eda28e64bc6593e916f852db99e
tree7a71466125ad40202bb9ea6f122a5115b321bee8
parent727a3c5860ef5e1fb8878da9d44c6e5e33a4f4ae
ZFS: Support sparse volumes

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>
src/storage/storage_backend_zfs.c