Revision d967b2f1 qmp-commands.hx

b/qmp-commands.hx
694 694
EQMP
695 695

  
696 696
    {
697
        .name       = "blockdev-snapshot-sync",
698
        .args_type  = "device:B,snapshot-file:s?,format:s?",
699
        .params     = "device [new-image-file] [format]",
700
        .user_print = monitor_user_noop,
701
        .mhandler.cmd_new = do_snapshot_blkdev,
702
    },
703

  
704
SQMP
705
blockdev-snapshot-sync
706
----------------------
707

  
708
Synchronous snapshot of a block device. snapshot-file specifies the
709
target of the new image. If the file exists, or if it is a device, the
710
snapshot will be created in the existing file/device. If does not
711
exist, a new file will be created. format specifies the format of the
712
snapshot image, default is qcow2.
713

  
714
Arguments:
715

  
716
- "device": device name to snapshot (json-string)
717
- "snapshot-file": name of new image file (json-string)
718
- "format": format of new image (json-string, optional)
719

  
720
Example:
721

  
722
-> { "execute": "blockdev-snapshot", "arguments": { "device": "ide-hd0",
723
                                                    "snapshot-file":
724
                                                    "/some/place/my-image",
725
                                                    "format": "qcow2" } }
726
<- { "return": {} }
727

  
728
EQMP
729

  
730
    {
697 731
        .name       = "balloon",
698 732
        .args_type  = "value:M",
699 733
        .params     = "target",

Also available in: Unified diff