]> git.proxmox.com Git - mirror_qemu.git/commit
block: clarify error message for qmp-eject
authorJohn Snow <jsnow@redhat.com>
Wed, 18 May 2016 21:53:40 +0000 (17:53 -0400)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:31 +0000 (16:45 +0200)
commit3a3086b72ab723de9e0ffd705d01b82a8a9f3e49
tree33b21687ca17acf362ca15ce34b93daa7a505eee
parent1ef7d010216b7d1046a3f6e31b49093addad01ce
block: clarify error message for qmp-eject

If you use HMP's eject but the CDROM tray is locked, you may get a
confusing error message informing you that the "tray isn't open."

As this is the point of eject, we can do a little better and help
clarify that the tray was locked and that it (might) open up later,
so try again.

It's not ideal, but it makes the semantics of the (legacy) eject
command more understandable to end users when they try to use it.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c