• J
    QAPI: add command for live block commit, 'block-commit' · ed61fc10
    Jeff Cody 提交于
    The command for live block commit is added, which has the following
    arguments:
    
    device: the block device to perform the commit on (mandatory)
    base:   the base image to commit into; optional (if not specified,
            it is the underlying original image)
    top:    the top image of the commit - all data from inside top down
            to base will be committed into base (mandatory for now; see
            note, below)
    
    speed:  maximum speed, in bytes/sec
    
    Note: Eventually this command will support merging down the active layer,
          but that code is not yet complete.  If the active layer is passed
          in as top, then an error will be returned.  Once merging down the
          active layer is supported, the 'top' argument may become optional,
          and default to the active layer.
    
    The is done as a block job, so upon completion a BLOCK_JOB_COMPLETED will
    be emitted.
    Signed-off-by: NJeff Cody <jcody@redhat.com>
    Reviewed-by: NEric Blake <eblake@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    ed61fc10
qapi-schema.json 70.0 KB