• O
    qemu: Fix a regression of domjobabort · f362a99a
    Osier Yang 提交于
    Introduced by f9a837da, the condition is not changed after
    the else clause is removed. So now it quit with "domain is not
    running" when the domain is running. However, when the domain is
    not running, it reports "no job is active".
    
    How to reproduce:
    
    1)
    % virsh start $domain
    % virsh domjobabort $domain
    error: Requested operation is not valid: domain is not running
    
    2)
    % virsh destroy $domain
    % virsh domjobabort $domain
    error: Requested operation is not valid: no job is active on the domain
    
    3)
    % virsh save $domain /tmp/$domain.save
    
    Before above commands finished, try to abort job in another terminal
    
    % virsh domabortjob $domain
    error: Requested operation is not valid: domain is not running
    f362a99a
qemu_driver.c 289.7 KB