mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
When virt-sparsify receives a user quit signal (eg from ^C) it currently kills virt-sparsify and qemu instantly, meaning any mount + fstrim in progress is uncleanly stopped. The (minor) side effect of this is that the guest filesystem may require a journal replay or fsck on boot. Let virt-sparsify capture the user quit signal and shut down gracefully. It is not thought that the previous behaviour could cause guest corruption; see https://lists.nongnu.org/archive/html/qemu-devel/2015-11/threads.html#00402 for discussion.