7408403 virsh: Refactor block job waiting in cmdBlockCommit

Authored and Committed by Peter Krempa 8 years ago
    virsh: Refactor block job waiting in cmdBlockCommit
    
    Reuse the vshBlockJobWait infrastructure to refactor cmdBlockCommit to
    use the common code. This additionally fixes a bug when working with
    new qemus, where when doing an active commit with --pivot the pivoting
    would fail, since qemu reaches 100% completion but the job doesn't
    switch to synchronized phase right away.
    
        
file modified
+39 -92