Just a related note, maybe it's worthwhile to add a 'qemu-img check' command to report any inconsistencies in the disk image.
From `qemu-img` man page of the option 'check':
[. . .]
check [-f fmt] [--output=ofmt] [-r [leaks | all]] filename
Perform a consistency check on the disk image filename. The command can output in the format ofmt which is either
"human" or "json".
If "-r" is specified, qemu-img tries to repair any inconsistencies found during the check. "-r leaks" repairs only cluster leaks,
whereas "-r all" fixes all kinds of errors, with a higher risk of choosing the wrong fix or hiding corruption that has already occurred.
[. . .]
Just a related note, maybe it's worthwhile to add a 'qemu-img check' command to report any inconsistencies in the disk image.
From `qemu-img` man page of the option 'check':
[. . .]
check [-f fmt] [--output=ofmt] [-r [leaks | all]] filename
Perform a consistency check on the disk image filename. The command can output in the format ofmt which is either
"human" or "json".
If "-r" is specified, qemu-img tries to repair any inconsistencies found during the check. "-r leaks" repairs only cluster leaks,
occurred.
whereas "-r all" fixes all kinds of errors, with a higher risk of choosing the wrong fix or hiding corruption that has already
[. . .]