]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Storage: ZFS: implement `resizeVol` method to support native resize
authorGeorge Melikov <mail@gmelikov.ru>
Thu, 24 Jul 2025 14:34:03 +0000 (17:34 +0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 5 Aug 2025 10:31:58 +0000 (11:31 +0100)
commit23a1eb0dc7f1c255ae6d857f78f5a6cf58b2dc5e
tree41aba20d900ef0ecea04e9a1f930f12c2017d99a
parentb0cc1c52438a907c349c8d2d99eef87171524cc7
Storage: ZFS: implement `resizeVol` method to support native resize

ZFS doesn't have thick allocations, every allocation is
thin-provisioned, so resize operation is essentially
a zvol size limit change
(`zfs set volsize=X pool/zvol_name`).

Shrink is allowed too (which leads to data destruction),
but shrink restriction is already implemented in libvirt,
so this function doesn't need to check anything.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: George Melikov <mail@gmelikov.ru>
src/storage/storage_backend_zfs.c