[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] c5840b: qga-win: Handle fstrim for OSes lower
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] c5840b: qga-win: Handle fstrim for OSes lower than Win8 |
Date: |
Tue, 24 Jul 2018 05:29:49 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: c5840b905e3e471833b277a27910f577d0e30d59
https://github.com/qemu/qemu/commit/c5840b905e3e471833b277a27910f577d0e30d59
Author: Sameeh Jubran <address@hidden>
Date: 2018-07-23 (Mon, 23 Jul 2018)
Changed paths:
M qga/commands-win32.c
Log Message:
-----------
qga-win: Handle fstrim for OSes lower than Win8
The defrag.exe tool which is used for executing the fstrim command
on Windows doesn't support retrim for OSes lower than Win8. This
commit handles this case and returns a suitable error.
Output of fstrim before this commit:
{"execute":"guest-fstrim"}
{"return": {"paths": [{"path": "C:\\", "error": "An invalid command line option
was specified. (0x89000008)"}, {"path": "F:\\", "error": "An invalid command
line option was specified. (0x89000008)"}, {"path": "S:\\", "error": "An
invalid command line option was specified. (0x89000008)"}]}}
Reported on:
https://bugzilla.redhat.com/show_bug.cgi?id=1594113
Signed-off-by: Sameeh Jubran <address@hidden>
* use alternative version query code proposed by Sameeh
* fix up version check logic
* avoid CamelCase variable names when possible
Signed-off-by: Michael Roth <address@hidden>
Commit: ae7da1e5f658ea21d96e565514de20ff2cf24fa1
https://github.com/qemu/qemu/commit/ae7da1e5f658ea21d96e565514de20ff2cf24fa1
Author: Marc-André Lureau <address@hidden>
Date: 2018-07-23 (Mon, 23 Jul 2018)
Changed paths:
M qga/main.c
Log Message:
-----------
qga: process_event() simplification and leak fix
json_parser_parse_err() may return something else than a QDict, in
which case we loose the object. Let's keep track of the original
object to avoid leaks.
When an error occurs, "qdict" contains the response, but we still
check the "execute" key there. Untangle a bit this code, by having a
clear error path.
CC: Michael Roth <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Cc: address@hidden
Signed-off-by: Michael Roth <address@hidden>
Commit: aabbca41053e85ffbebcac279c4b85cb2696c55d
https://github.com/qemu/qemu/commit/aabbca41053e85ffbebcac279c4b85cb2696c55d
Author: Peter Maydell <address@hidden>
Date: 2018-07-24 (Tue, 24 Jul 2018)
Changed paths:
M qga/commands-win32.c
M qga/main.c
Log Message:
-----------
Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2018-07-23-tag'
into staging
qemu-ga patch queue for hard-freeze
* fix leak in qga main loop error path
* better error reporting when Windows version doesn't support fstrim
# gpg: Signature made Tue 24 Jul 2018 00:58:29 BST
# gpg: using RSA key 3353C9CEF108B584
# gpg: Good signature from "Michael Roth <address@hidden>"
# gpg: aka "Michael Roth <address@hidden>"
# gpg: aka "Michael Roth <address@hidden>"
# Primary key fingerprint: CEAC C9E1 5534 EBAB B82D 3FA0 3353 C9CE F108 B584
* remotes/mdroth/tags/qga-pull-2018-07-23-tag:
qga: process_event() simplification and leak fix
qga-win: Handle fstrim for OSes lower than Win8
Signed-off-by: Peter Maydell <address@hidden>
Compare: https://github.com/qemu/qemu/compare/1a5182c0d2ea...aabbca41053e
**NOTE:** This service been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] c5840b: qga-win: Handle fstrim for OSes lower than Win8,
GitHub <=