Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 64

kvm-83-270.el5_11.src.rpm

From d3345260791725229e5f5f19cebeb436c24f267f Mon Sep 17 00:00:00 2001
From: Jiri Denemark <jdenemar@redhat.com>
Date: Mon, 25 Oct 2010 12:21:12 -0200
Subject: [PATCH] Add -drive readonly option to help output

RH-Author: Jiri Denemark <jdenemar@redhat.com>
Message-id: <05c79362b66125b4a74e0556b029572b36ad4914.1288009266.git.jdenemar@redhat.com>
Patchwork-id: 12938
O-Subject: [RHEL-5.6 kvm PATCH] Add -drive readonly option to help output
Bugzilla: 645798
RH-Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>

Bugzilla: 645798
Upstream commit: 3f3ed5933aa9b7890d9ba5bbc418d153aa61a5f7

The readonly option was added to drive command line argument in kvm-83-171 but
without advertising this option in help output.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 qemu/vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/vl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu/vl.c b/qemu/vl.c
index 2300b3f..8b42123 100644
--- a/qemu/vl.c
+++ b/qemu/vl.c
@@ -4265,7 +4265,7 @@ static void help(int exitcode)
 	   "-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|none|unsafe][,format=f][,serial=s]\n"
-           "       [,boot=on|off]\n"
+           "       [,boot=on|off][,readonly=on|off]\n"
 	   "                use 'file' as a drive image\n"
            "-mtdblock file  use 'file' as on-board Flash memory image\n"
            "-sd file        use 'file' as SecureDigital card image\n"
-- 
1.6.5.5