diff options
author | Sameeh Jubran | 2018-06-24 14:45:40 +0200 |
---|---|---|
committer | Michael Roth | 2018-07-24 01:45:21 +0200 |
commit | c5840b905e3e471833b277a27910f577d0e30d59 (patch) | |
tree | 475433578a4a5ee642733c20687d41b696fcb71a /qga/vss-win32/provider.cpp | |
parent | Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180723' into staging (diff) | |
download | qemu-c5840b905e3e471833b277a27910f577d0e30d59.tar.gz qemu-c5840b905e3e471833b277a27910f577d0e30d59.tar.xz qemu-c5840b905e3e471833b277a27910f577d0e30d59.zip |
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 <sjubran@redhat.com>
* use alternative version query code proposed by Sameeh
* fix up version check logic
* avoid CamelCase variable names when possible
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga/vss-win32/provider.cpp')
0 files changed, 0 insertions, 0 deletions