Add a function to check if given disk exist in domain

Signed-off-by: Yanbing Du <ydu@redhat.com>
Add a function to get qemu image format

Signed-off-by: Yanbing Du <ydu@redhat.com>
Add a function to check block job

Signed-off-by: Yanbing Du <ydu@redhat.com>