Introduce do_snapshot_blkdev() and monitor command to handle it.
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 16 Dec 2010 12:52:16 +0000 (13:52 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2010 15:11:03 +0000 (16:11 +0100)
commit0fb925f0fcd3e0197d826f94f7e727b9f480bab2
treebfe1c1e288f16f716489a27ff8e7df9903204312
parentba22191ad612c2a437a66a0962bdb217a20aa130
Introduce do_snapshot_blkdev() and monitor command to handle it.

The monitor command is:
snapshot_blkdev <device> [snapshot-file] [format]

Default format is qcow2. For now snapshots without a snapshot-file, eg
internal snapshots, are not supported.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
blockdev.h
hmp-commands.hx