diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-12-04 17:10:55 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-12-04 15:19:00 +0100 |
commit | 8c116b0e4141400f8d43a7e6dac8ff3adcc8aadd (patch) | |
tree | 758e8c14c3f45d51d1561d5bb5d2c72b7a35f0f7 /include | |
parent | 7b4c4781e390a041fa0ef70817678f1b97fc6db6 (diff) |
qemu-nbd: support internal snapshot export
Now it is possible to directly export an internal snapshot, which
can be used to probe the snapshot's contents without qemu-img
convert.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/snapshot.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/block/snapshot.h b/include/block/snapshot.h index d05bea7223..770d9bbc8c 100644 --- a/include/block/snapshot.h +++ b/include/block/snapshot.h @@ -27,6 +27,14 @@ #include "qemu-common.h" #include "qapi/error.h" +#include "qemu/option.h" + + +#define SNAPSHOT_OPT_BASE "snapshot." +#define SNAPSHOT_OPT_ID "snapshot.id" +#define SNAPSHOT_OPT_NAME "snapshot.name" + +extern QemuOptsList internal_snapshot_opts; typedef struct QEMUSnapshotInfo { char id_str[128]; /* unique snapshot id */ |