qemu/qga
Eric Blake 0a982b1bf3 qga: Better mapping of SEEK_* in guest-file-seek
Exposing OS-specific SEEK_ constants in our qapi was a mistake
(if the host has SEEK_CUR as 1, but the guest has it as 2, then
the semantics are unclear what should happen); if we had a time
machine, we would instead expose only a symbolic enum.  It's too
late to change the fact that we have an integer in qapi, but we
can at least document what mapping we want to enforce for all
qga clients (and luckily, it happens to be the mapping that both
Linux and Windows use); then fix the code to match that mapping.
It also helps us filter out unsupported SEEK_DATA and SEEK_HOLE.

In the future, we may wish to move our QGA_SEEK_* constants into
qga/qapi-schema.json, along with updating the schema to take an
alternate type (either the integer, or the string value of the
enum name) - but that's too much risk during hard freeze.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-11-25 17:56:45 -06:00
..
installer qga: gspawn() console helper to Windows guest agent msi build 2015-11-25 10:21:55 -06:00
vss-win32 error: On abort, report where the error was created 2015-09-10 13:48:06 +02:00
channel-posix.c qga: handle G_IO_STATUS_AGAIN in ga_channel_write_all() 2015-10-19 18:31:54 -05:00
channel-win32.c qga: fix uninitialized value warning for win32 2015-10-19 18:31:54 -05:00
channel.h qemu-ga: move channel/transport functionality into wrapper class 2012-02-23 15:40:16 -06:00
commands-posix.c qga: Better mapping of SEEK_* in guest-file-seek 2015-11-25 17:56:45 -06:00
commands-win32.c qga: Better mapping of SEEK_* in guest-file-seek 2015-11-25 17:56:45 -06:00
commands.c qga: allow to lookup in PATH from the passed envp for guest-exec 2015-11-17 16:24:18 -06:00
guest-agent-command-state.c qga: Use g_new() & friends where that makes obvious sense 2015-10-19 18:28:06 -05:00
guest-agent-core.h qga: Better mapping of SEEK_* in guest-file-seek 2015-11-25 17:56:45 -06:00
main.c qdict: Make conversion from QObject * accept null 2015-10-29 14:34:45 +01:00
Makefile.objs qemu-ga: Call Windows VSS requester in fsfreeze command handler 2013-09-09 14:17:57 -05:00
qapi-schema.json qga: Better mapping of SEEK_* in guest-file-seek 2015-11-25 17:56:45 -06:00
service-win32.c qga: escape cmdline args when registering win32 service (CVE-2013-2231) 2013-07-25 14:49:04 -05:00
service-win32.h qga: save state directory in ga_install_service() 2013-05-30 11:37:37 -05:00
vss-win32.c error: On abort, report where the error was created 2015-09-10 13:48:06 +02:00
vss-win32.h qga: Consistently name Error ** objects errp, and not err 2014-05-09 09:11:26 -04:00