[libvirt] [PATCH] iscsi_direct: Reset pool capacity and allocation just before refresh

Pavel Hrdina phrdina at redhat.com
Thu Feb 28 12:00:51 UTC 2019


On Thu, Feb 28, 2019 at 12:03:47PM +0100, Michal Privoznik wrote:
> Jirka reported a bug that with every 'virsh pool-refresh' an
> iscsi-direct pool would grow and grow. The problem is that
> virISCSIDirectRefreshVol() only adds to def->capacity and
> def->allocation but nothing clears it out to begin with.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/storage/storage_backend_iscsi_direct.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190228/8efd2d13/attachment-0001.sig>


More information about the libvir-list mailing list