qemuProcessHandleBlockJob: Set disk->mirrorState more often
qemuProcessHandleBlockJob: Set disk->mirrorState more often

Currently, upon BLOCK_JOB_* event, disk->mirrorState is not updated
each time. The callback code handling the events checks if a blockjob
was started via our public APIs prior to setting the mirrorState.
However, some block jobs may be started internally (e.g. during
storage migration), in which case we don't bother with setting
disk->mirror (there's nothing we can set it to anyway), or other
fields. But it will come handy if we update the mirrorState in these
cases too. The event wasn't delivered just for fun - we've started the
job after all.

So, in this commit, the mirrorState is set to whatever job status
we've obtained. Of course, there are some actions on some statuses
that we want to perform. But instead of if {} else if {} else {} ...
enumeration, let's move to switch().

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

jardasgit/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,libvirt/libvirt,fabianfreyer/libvirt,rlaager/libvirt,shugaoye/libvirt,eskultety/libvirt,eskultety/libvirt,VenkatDatta/libvirt,datto/libvirt,olafhering/libvirt,datto/libvirt,agx/libvirt,libvirt/libvirt,taget/libvirt,taget/libvirt,zippy2/libvirt,nertpinx/libvirt,rlaager/libvirt,fabianfreyer/libvirt,agx/libvirt,VenkatDatta/libvirt,crobinso/libvirt,jardasgit/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,eskultety/libvirt,agx/libvirt,eskultety/libvirt,crobinso/libvirt,crobinso/libvirt,shugaoye/libvirt,andreabolognani/libvirt,shugaoye/libvirt,shugaoye/libvirt,datto/libvirt,jardasgit/libvirt,andreabolognani/libvirt,libvirt/libvirt,jfehlig/libvirt,nertpinx/libvirt,nertpinx/libvirt,olafhering/libvirt,VenkatDatta/libvirt,taget/libvirt,rlaager/libvirt,datto/libvirt,zippy2/libvirt,jfehlig/libvirt,agx/libvirt,shugaoye/libvirt,olafhering/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,libvirt/libvirt,nertpinx/libvirt,taget/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,olafhering/libvirt,taget/libvirt,crobinso/libvirt,andreabolognani/libvirt,rlaager/libvirt,rlaager/libvirt,zippy2/libvirt,jardasgit/libvirt,zippy2/libvirt,eskultety/libvirt,andreabolognani/libvirt,datto/libvirt,agx/libvirt