Bug 1026595 - remove the <"locked": false> from QMP monitor for passthrough disk (scsi-block )
remove the <"locked": false> from QMP monitor for passthrough disk (scsi-block )
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Virtualization Maintenance
Virtualization Bugs
Depends On: 1026591
  Show dependency treegraph
Reported: 2013-11-04 22:09 EST by Sibiao Luo
Modified: 2013-11-05 05:23 EST (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1026591
Last Closed: 2013-11-05 05:23:23 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Comment 1 Sibiao Luo 2013-11-04 22:13:29 EST
host info:
# uname -r && rpm -q qemu-kvm

# /usr/libexec/qemu-kvm -M pc -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -drive file=/dev/sr0,if=none,id=drive-cdrom-disk,format=raw,media=cdrom,werror=stop,rerror=stop,readonly=on -device virtio-scsi-pci,bus=pci.0,addr=0x8,id=scsi0 -device scsi-block,drive=drive-cdrom-disk,bus=scsi0.0,id=cdrom-disk,bus=scsi0.0 -vnc :1 -monitor stdio -qmp tcp:0:4444,server,nowait
QEMU 1.5.3 monitor - type 'help' for more information
(qemu) info block
drive-cdrom-disk: removable=0 io-status=ok file=/dev/sr0 ro=1 drv=raw encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0
{"return": [{"io-status": "ok", "device": "drive-cdrom-disk", "locked": false, "removable": false, "inserted": {"iops_rd": 0, "iops_wr": 0, "ro": true, "backing_file_depth": 0, "drv": "raw", "iops": 0, "bps_wr": 0, "encrypted": false, "bps": 0, "bps_rd": 0, "file": "/dev/sr0", "encryption_key_missing": false}, "type": "unknown"}...]}

Best regards,
Comment 2 Paolo Bonzini 2013-11-05 05:23:23 EST
For historical reasons, the "locked" field in the output of "query-block" is mandatory.  It will even be present in hard disks, for example (unlike tray-open).  So it cannot be removed.

Note You need to log in before you can comment on or make changes to this bug.