mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() Commit v9.0.0-343-g2048129625 introduced usage of
g_file_set_contents() function to write to /sys/power/state.
This function uses G_FILE_SET_CONTENTS_CONSISTENT flag to
g_file_set_contents_full(), which is implemented by creating
a temp file in the same directory and renaming it to the final
destination. Which is not how sysfs works.
Here, there's not a big deal to do open/write/close - it becomes
almost the same as using g_file_set_contents[_full](). But it
does not have surprises like this.
Also, since this is linux code, it should be ok to use %m in
the error reporting function.
Fixes:
|
6 days ago | |
---|---|---|
.. | ||
installer | 2 years ago | |
vss-win32 | 1 month ago | |
channel-posix.c | 2 years ago | |
channel-win32.c | 4 years ago | |
channel.h | 9 years ago | |
commands-bsd.c | 10 months ago | |
commands-common-ssh.c | 1 year ago | |
commands-common-ssh.h | 1 year ago | |
commands-common.h | 1 year ago | |
commands-linux.c | 6 days ago | |
commands-posix-ssh.c | 1 year ago | |
commands-posix.c | 6 months ago | |
commands-win32.c | 2 months ago | |
commands-windows-ssh.c | 9 months ago | |
commands-windows-ssh.h | 1 year ago | |
commands.c | 1 year ago | |
cutils.c | 3 years ago | |
cutils.h | 3 years ago | |
guest-agent-command-state.c | 7 years ago | |
guest-agent-core.h | 2 months ago | |
main.c | 2 months ago | |
meson.build | 2 months ago | |
messages-win32.mc | 3 years ago | |
qapi-schema.json | 2 weeks ago | |
service-win32.c | 9 years ago | |
service-win32.h | 7 years ago | |
vss-win32.c | 7 years ago | |
vss-win32.h | 7 years ago |