Bug 645798

Summary: Add drive readonly option to help output
Product: Red Hat Enterprise Linux 5 Reporter: Jiri Denemark <jdenemar>
Component: kvmAssignee: Jiri Denemark <jdenemar>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.6CC: michen, mjenner, mkenneth, veillard, virt-maint, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kvm-83-207.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 23:38:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 510612    
Attachments:
Description Flags
Add-drive-readonly-option-to-help-output.patch none

Description Jiri Denemark 2010-10-22 13:46:19 UTC
Created attachment 455074 [details]
Add-drive-readonly-option-to-help-output.patch

Description of problem:

Since kvm-83-171, -drive supports readonly=on option but this is not reflected in -help.

Steps to Reproduce:
1. /usr/libexec/qemu-kvm -help
  
Actual results:

...
-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]
       [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]
       [,cache=writethrough|writeback|none|unsafe][,format=f][,serial=s]
       [,boot=on|off]
...

Expected results:

readonly=on|off should be there

Additional info:

Patch attached.

Comment 5 Miya Chen 2010-11-16 02:30:48 UTC
Verified with kvm-83-207.el5, this problem has been fixed.

# /usr/libexec/qemu-kvm --help
......
-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]
       [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]
       [,cache=writethrough|writeback|none|unsafe][,format=f][,serial=s]
       [,boot=on|off][,readonly=on|off]

Comment 8 errata-xmlrpc 2011-01-13 23:38:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0028.html