qmp: Add command 'blockdev-backup'
commitc29c1dd312f39ec18a3c6177c6da09a75e095d70
authorFam Zheng <famz@redhat.com>
Thu, 18 Dec 2014 10:37:05 +0000 (18 18:37 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 13 Jan 2015 11:47:56 +0000 (13 11:47 +0000)
tree8be81941bacdac122ab360b1f6c9486add1e8ef9
parentb7b9d39a7a5bd3a7fe5968b7780c9868c3210a4d
qmp: Add command 'blockdev-backup'

Similar to drive-backup, but this command uses a device id as target
instead of creating/opening an image file.

Also add blocker on target bs, since the target is also a named device
now.

Add check and report error for bs == target which became possible but is
an illegal case with introduction of blockdev-backup.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 1418899027-8445-3-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/backup.c
blockdev.c
qapi/block-core.json
qmp-commands.hx