summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@novell.com>2010-07-21 14:32:28 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2010-07-28 14:04:24 -0500
commit50aa457e1d0135f7e336a2157fc5f7ac7dd15589 (patch)
tree755cff9333ca08e4020a6365a61cd1a2605b5d2e
parent6546605650625da412d47b941cfa9bf2837c0696 (diff)
downloadqemu-50aa457e1d0135f7e336a2157fc5f7ac7dd15589.tar.gz
move 'unsafe' to end of caching modes in help
Libvirt parses qemu help output to determine qemu features. In particular it probes for the following: "cache=writethrough|writeback|none". The addition of the unsafe cache mode was inserted within this string, as opposed to being added to the end, which impacted libvirt's probe. Unbreak libvirt by keeping the existing cache modes intact and add unsafe to the end. This problem only manifests itself if a caching mode is explicitly specified in the libvirt xml, in which case older syntax for caching is passed to qemu, which it no longer understands. Signed-off-by: Bruce Rogers <brogers@novell.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com> (cherry picked from commit 6c6b6ba20a167a89f85606125ee1e10eafef5b33) Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--qemu-options.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-options.hx b/qemu-options.hx
index 40cee704ea..db86feb09b 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -118,7 +118,7 @@ ETEXI
DEF("drive", HAS_ARG, QEMU_OPTION_drive,
"-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n"
" [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]\n"
- " [,cache=writethrough|writeback|unsafe|none][,format=f]\n"
+ " [,cache=writethrough|writeback|none|unsafe][,format=f]\n"
" [,serial=s][,addr=A][,id=name][,aio=threads|native]\n"
" [,readonly=on|off]\n"
" use 'file' as a drive image\n", QEMU_ARCH_ALL)