]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
block: Add commit_active_start()
authorFam Zheng <famz@redhat.com>
Mon, 16 Dec 2013 06:45:30 +0000 (14:45 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 20 Dec 2013 15:26:16 +0000 (16:26 +0100)
commit03544a6e9ecc1be115e8a29bd929f83b467d4816
treefd8523760266e830e3e0aeddaed244c0602ca559
parent5bc361b8134eff68e2c40916d1cf58b3523d223b
block: Add commit_active_start()

commit_active_start is implemented in block/mirror.c, It will create a
job with "commit" type and designated base in block-commit command. This
will be used for committing active layer of device.

Sync mode is removed from MirrorBlockJob because there's no proper type
for commit. The used information is is_none_mode.

The common part of mirror_start and commit_active_start is moved to
mirror_start_job().

Fix the comment wording for commit_start.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/mirror.c
include/block/block_int.h