Commit f658823
committed
fix(coalesce): Big vhd-blocks cause exception
When handling bitmap, the GC is trying to write it in sm-config of the
VDI.
In the case of QCOW2, the bitmap can be bigger with 64KiB blocksize
and they can't be written in the VDI sm-config.
In this case, the GC would silently fail before running again and
failing again.
The written information is apparently never used again but the existence
of the key in sm-config is checked by the GC to know if it has work to
do.
By not raising, the GC would run normally but never stop.
Writing a dummy value then allow the GC to run and stop if it doesn't
have work to do.
Since the value used is always read from the VDI, the one from sm-config
is not really relevant.
Signed-off-by: Damien Thenot <damien.thenot@vates.tech>1 parent 10187da commit f658823
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
773 | 781 | | |
774 | 782 | | |
775 | 783 | | |
| |||
0 commit comments