[libvirt] [PATCH v3 3/3] rbd: optionally compute volume allocation from capacity

2019-03-19 Thread jdillama
From: Jason Dillaman Use the new refresh volume allocation pool override to skip computing the actual volume usage if disabled. Signed-off-by: Jason Dillaman --- src/storage/storage_backend_rbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[libvirt] [PATCH v3 2/3] storage: optional 'refresh' elemement on pool

2019-03-19 Thread jdillama
From: Jason Dillaman The new 'refresh' element can override the default refresh operations for a storage pool. The only currently supported override is to set the volume allocation size to the volume capacity. This can be specified by adding the following snippet: ... ... This is

[libvirt] [PATCH v3 1/3] rbd: do not attempt to use fast-diff if it's marked invalid

2019-03-19 Thread jdillama
From: Jason Dillaman The librbd API will transparently revert to a slow disk usage calculation method if the fast-diff map is marked as invalid. Signed-off-by: Jason Dillaman --- src/storage/storage_backend_rbd.c | 41 --- 1 file changed, 37 insertions(+), 4

[libvirt] [PATCH v3 0/3] rbd: improvements to actual disk-usage calculation

2019-03-19 Thread jdillama
From: Jason Dillaman The RBD fast-diff feature can vastly reduce the amount of time needed to calculate actual disk usage of volumes, but it might still be a slow operation for large RBD pools or pools with large RBD images. Therefore, this feature should be able to be optionally disabled if

[libvirt] [PATCH 1/3] rbd: do not attempt to use fast-diff if it's marked invalid

2019-03-15 Thread jdillama
From: Jason Dillaman The librbd API will transparently revert to a slow disk usage calculation method if the fast-diff map is marked as invalid. Signed-off-by: Jason Dillaman --- src/storage/storage_backend_rbd.c | 41 --- 1 file changed, 37 insertions(+), 4

[libvirt] [PATCH 3/3] rbd: optionally compute volume allocation from capacity

2019-03-15 Thread jdillama
From: Jason Dillaman Use the new 'refresh_volume_allocation' pool override to skip computing the actual volume usage if disabled. Signed-off-by: Jason Dillaman --- src/storage/storage_backend_rbd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[libvirt] [PATCH 2/3] storage: optional 'refresh_volume_allocation' attribute on pool

2019-03-15 Thread jdillama
From: Jason Dillaman When this attribute is set to 'capacity', refreshing volume allocations within the pool will report the capacity for the allocation. This is useful for certain backends where computing the actual allocation of a volume might be an expensive operation. Signed-off-by: Jason

[libvirt] [PATCH v2 0/3] rbd: improvements to actual disk-usage calculation

2019-03-15 Thread jdillama
From: Jason Dillaman The RBD fast-diff feature can vastly reduce the amount of time needed to calculate actual disk usage of volumes, but it might still be a slow operation for large RBD pools or pools with large RBD images. Therefore, this feature should be able to be optionally disabled if

[libvirt] [PATCH 0/2] rbd: improvements to actual disk-usage calculation

2019-03-11 Thread jdillama
From: Jason Dillaman The RBD fast-diff feature can vastly reduce the amount of time needed to calculate actual disk usage of volumes, but it might still be a slow operation for large RBD pools or pools with large RBD images. Therefore, this feature should be able to be optionally disabled if

[libvirt] [PATCH 1/2] rbd: do not attempt to use fast-diff if it's marked invalid

2019-03-11 Thread jdillama
From: Jason Dillaman The librbd API will transparently revert to a slow disk usage calculation method if the fast-diff map is marked as invalid. Signed-off-by: Jason Dillaman --- src/storage/storage_backend_rbd.c | 41 --- 1 file changed, 37 insertions(+), 4

[libvirt] [PATCH 2/2] rbd: optionally disable actual disk-usage during pool/volume refresh

2019-03-11 Thread jdillama
From: Jason Dillaman For pools with numerous volumes or very large volumes, the disk-usage calculation can take a non-trivial amount of time even with the fast-diff feature enabled (especially since the the usage is calculated serially for each image in the pool). The "rbd:config_opts" node now