diff options
| author | Jes Sorensen | 2010-12-16 13:52:16 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2010-12-17 16:11:03 +0100 |
| commit | f88825680aa71eb4069cdaee9d65f2269f5c7cf3 (patch) | |
| tree | bfe1c1e288f16f716489a27ff8e7df9903204312 /blockdev.h | |
| parent | qemu-img.c: Re-factor img_create() (diff) | |
| download | qemu-f88825680aa71eb4069cdaee9d65f2269f5c7cf3.tar.gz qemu-f88825680aa71eb4069cdaee9d65f2269f5c7cf3.tar.xz qemu-f88825680aa71eb4069cdaee9d65f2269f5c7cf3.zip | |
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>
Diffstat (limited to 'blockdev.h')
| -rw-r--r-- | blockdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blockdev.h b/blockdev.h index 4cb8ca93d4..4536b5cab1 100644 --- a/blockdev.h +++ b/blockdev.h @@ -52,5 +52,6 @@ int do_block_set_passwd(Monitor *mon, const QDict *qdict, QObject **ret_data); int do_change_block(Monitor *mon, const char *device, const char *filename, const char *fmt); int do_drive_del(Monitor *mon, const QDict *qdict, QObject **ret_data); +int do_snapshot_blkdev(Monitor *mon, const QDict *qdict, QObject **ret_data); #endif |
