qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] hotremoving a disk qmp/hmp
@ 2014-11-18 10:02 William Dauchy
  2014-11-18 14:22 ` Markus Armbruster
  0 siblings, 1 reply; 5+ messages in thread
From: William Dauchy @ 2014-11-18 10:02 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Paolo Bonzini, Ian Main, Fam Zheng, Markus Armbruster

[-- Attachment #1: Type: text/plain, Size: 1773 bytes --]

Hello,

When hotremoving a disk I'm using the QMP API with device_del command;

Previous query-block command result:

{   u'device': u'disk1',
    u'inserted': {   u'backing_file_depth': 0,
                     u'bps': 0,
                     u'bps_rd': 0,
                     u'bps_wr': 0,
                     u'detect_zeroes': u'off',
                     u'drv': u'raw',
                     u'encrypted': False,
                     u'encryption_key_missing': False,
                     u'file': u'/dev/sda',
                     u'image': {   u'actual-size': 0,
                                   u'dirty-flag': False,
                                   u'filename': u'/dev/sda',
                                   u'format': u'raw',
                                   u'virtual-size': 3221225472},
                     u'iops': 0,
                     u'iops_rd': 0,
                     u'iops_wr': 0,
                     u'ro': False},
    u'io-status': u'ok',
    u'locked': True,
    u'removable': True,
    u'tray_open': False,
    u'type': u'unknown'}

After a device_del command I have the same thing but "'locked': False"
Then I can also do `eject device=disk1` which bring me to:

{   u'device': u'disk1',
                       u'io-status': u'ok',
                       u'locked': False,
                       u'removable': True,
                       u'tray_open': False,
                       u'type': u'unknown'}

But I did not found a way to completely remove the disk1 entry in order
to be able to add it again.
To complete the operation I need to use the old HMP API and use
`drive_del` command.

Did I miss something? or is it still something missing in QMP API?

Best regards,
-- 
William

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-11-19  9:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18 10:02 [Qemu-devel] hotremoving a disk qmp/hmp William Dauchy
2014-11-18 14:22 ` Markus Armbruster
2014-11-18 15:08   ` William Dauchy
2014-11-18 17:15     ` Markus Armbruster
2014-11-19  9:58       ` William Dauchy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).