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

2019-02-28 Thread Pavel Hrdina
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 be

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

2019-02-28 Thread Michal Privoznik
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 --- src/storage/storage_backe