qcow2: Set zero flag for discarded clusters
Instead of making the backing file contents visible again after a discardrequest, set the zero flag if possible (i.e. on version >= 3).
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
Merge remote-tracking branch 'remotes/stefanha/tags/qtest-monitor-process-pull-request' into staging
qtest resource cleanup pull request
Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging
QOM infrastructure fixes and device conversions
Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging
qtest: kill QEMU process on g_assert() failure
The QEMU process stays running if the test case fails. This patch fixesthe leak by installing a SIGABRT signal handler which invokesqtest_end().
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>...
qtest: make QEMU our direct child process
qtest_init() cannot use exec*p() to launch QEMU since the exec*p()functions take an argument array while qtest_init() takes char*extra_args. Therefore we execute /bin/sh -c <command-line> and let theshell parse the argument string....
qtest: drop unused child_pid field
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>Reviewed-by: Markus Armbruster <armbru@redhat.com>
qtest: Include system headers before user headers
It is dangerous to include user headers before system headers since usermacros can affect system headers.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Andreas Färber <afaerber@suse.de>
Use error_is_set() only when necessary
error_is_set(&var) is the same as var != NULL, but it takeswhole-program analysis to figure that out. Unnecessarily hard foroptimizers, static checkers, and human readers. Dumb it down toobvious.
Gets rid of several dozen Coverity false positives....
Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-02-15' into staging
trivial patches for 2014-02-15
View revisions
Also available in: Atom