qemu-guest-agent: linux suspend fallback does not work
When linux guest has no systemd or pm-utils, QGA has an option to suspend a linux VM, by writing "mem" or "disk" to /sys/power/state. However, it does not work, because QGA uses g_file_set_contents() which creates a temp file (/sys/power/foobar) and renames it to the final destination, which never worked for files in sysfs.
This is broken since version 9.1 (commit 20481296).
Edited by Michael Tokarev