Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cleanup.py): bad live coalesce check regarding FileSR
The `VDI.canLiveCoalesce` method can manipulates sizes of different units because of this change: ``` CP-40871: use VHD allocation size in checking canLiveCoalesce 2f863b9 ``` As a result, the `canLiveCoalesce` method can return True and cause coalesce attempts resulting in "Timed out" exceptions. Only drivers deriving from `FileSR` are impacted. The size of `self._sizeAllocated` is calculated correctly when `vhdutil.getAllocatedSize` is called but there is a problematic case where `getVHDInfo` is used instead. And this function does not convert `info.sizeAllocated` from block size to bytes. This bug is caused by the call to `FileVDI.load` in cleanup.py. Signed-off-by: Damien Thenot <damien.thenot@vates.tech> Co-authored-by: Ronan Abhamon <ronan.abhamon@vates.tech>
- Loading branch information