Refactor disk unplugging
Refactor disk unplugging

We can reuse some of the code for other purposes.

Signed-off-by: Wolfgang Mauerer <a6964b10defa66b29b8d251d97540976d887cdfc@siemens.com>

datto/libvirt,foomango/libvirt,novel/fbsd-libvirt,foomango/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,jeckersb/libvirt,crobinso/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt,trainstack/libvirt,shugaoye/libvirt,nertpinx/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,novel/fbsd-libvirt,nertpinx/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,VenkatDatta/libvirt,trainstack/libvirt,elmarco/libvirt,warewolf/libvirt,zippy2/libvirt,leilihh/libvirt,usc-isi/libvirt,amery/libvirt-vserver,taget/libvirt,warewolf/libvirt,nertpinx/libvirt,rbu/libvirt,jfehlig/libvirt,siboulet/libvirt-openvz,danwent/libvirt-ovs,bjzhang/libvirt,VenkatDatta/libvirt,dumbbell/libvirt,zippy2/libvirt,rmarwaha/libvirt,kantai/libvirt-vfork,datto/libvirt,rbu/libvirt,trainstack/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt1,soulxu/libvirt-xuhj,jeckersb/libvirt,eskultety/libvirt,bjzhang/libvirt,usc-isi/libvirt,rlaager/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,olafhering/libvirt,agx/libvirt,emaste/libvirt,elmarco/libvirt,crobinso/libvirt,wiedi/libvirt,rmarwaha/libvirt,dumbbell/libvirt,jeckersb/libvirt,foomango/libvirt,andreabolognani/libvirt,jfehlig/libvirt,shugaoye/libvirt,nertpinx/libvirt,warewolf/libvirt,rbu/libvirt,emaste/libvirt,wiedi/libvirt,amery/libvirt-vserver,leilihh/libvirt,kantai/libvirt-vfork,novel/fbsd-libvirt,andreabolognani/libvirt,eskultety/libvirt,trainstack/libvirt,warewolf/libvirt,fabianfreyer/libvirt,agx/libvirt,soulxu/libvirt-xuhj,cbosdo/libvirt,VenkatDatta/libvirt,usc-isi/libvirt,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,olafhering/libvirt,leilihh/libvirt,rmarwaha/libvirt1,eskultety/libvirt,rmarwaha/libvirt1,taget/libvirt,usc-isi/libvirt,zippy2/libvirt,taget/libvirt,kantai/libvirt-vfork,crobinso/libvirt,rlaager/libvirt,zippy2/libvirt,VenkatDatta/libvirt,foomango/libvirt,iam-TJ/libvirt,fabianfreyer/libvirt,novel/fbsd-libvirt,trainstack/libvirt,shugaoye/libvirt,andreabolognani/libvirt,eskultety/libvirt,jfehlig/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt,rmarwaha/libvirt1,iam-TJ/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,olafhering/libvirt,jardasgit/libvirt,novel/fbsd-libvirt,wiedi/libvirt,warewolf/libvirt,taget/libvirt,cbosdo/libvirt,wiedi/libvirt,leilihh/libvirt,kantai/libvirt-vfork,sshah-solarflare/Libvirt-PCI-passthrough-,olafhering/libvirt,rlaager/libvirt,fabianfreyer/libvirt,rmarwaha/libvirt,siboulet/libvirt-openvz,elmarco/libvirt,jeckersb/libvirt,emaste/libvirt,jfehlig/libvirt,novel/fbsd-libvirt,eskultety/libvirt,datto/libvirt,taget/libvirt,amery/libvirt-vserver,elmarco/libvirt,emaste/libvirt,emaste/libvirt,siboulet/libvirt-openvz,andreabolognani/libvirt,danwent/libvirt-ovs,cbosdo/libvirt,kantai/libvirt-vfork,bjzhang/libvirt,novel/fbsd-libvirt,trainstack/libvirt,foomango/libvirt,novel/fbsd-libvirt,libvirt/libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,rlaager/libvirt,soulxu/libvirt-xuhj,sshah-solarflare/Libvirt-PCI-passthrough-,agx/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,andreabolognani/libvirt,warewolf/libvirt,dumbbell/libvirt,rmarwaha/libvirt1,iam-TJ/libvirt,bjzhang/libvirt,emaste/libvirt,danwent/libvirt-ovs,soulxu/libvirt-xuhj,cbosdo/libvirt,wiedi/libvirt,wiedi/libvirt,danwent/libvirt-ovs,fabianfreyer/libvirt,amery/libvirt-vserver,soulxu/libvirt-xuhj,iam-TJ/libvirt,amery/libvirt-vserver,jardasgit/libvirt,trainstack/libvirt,datto/libvirt,iam-TJ/libvirt,libvirt/libvirt,dumbbell/libvirt,shugaoye/libvirt,jeckersb/libvirt,usc-isi/libvirt,jeckersb/libvirt,iam-TJ/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,rbu/libvirt,danwent/libvirt-ovs,jeckersb/libvirt,rbu/libvirt,nertpinx/libvirt,siboulet/libvirt-openvz,shugaoye/libvirt,emaste/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,crobinso/libvirt,libvirt/libvirt,warewolf/libvirt,leilihh/libvirt,agx/libvirt,rmarwaha/libvirt,cbosdo/libvirt,datto/libvirt,wiedi/libvirt,bjzhang/libvirt,iam-TJ/libvirt,libvirt/libvirt,dumbbell/libvirt,leilihh/libvirt