hmp: Use blockdev-change-medium for change command
authorMax Reitz <mreitz@redhat.com>
Mon, 26 Oct 2015 20:39:16 +0000 (21:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Nov 2015 15:22:47 +0000 (16:22 +0100)
commit1068674927a08cb9f535946abe2f91529b13160c
tree9499a3f55eb469b6321e0fe84689f03bb9d7552b
parent24fb4133001e1f54a526f0927837f30c1507169a
hmp: Use blockdev-change-medium for change command

Use separate code paths for the two overloaded functions of the 'change'
HMP command, and invoke the 'blockdev-change-medium' QMP command if used
on a block device (by calling qmp_blockdev_change_medium()).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hmp.c