Add disk cache test cases.
Check libvirt version for cache option directsync; Improve the check_vm_partitions function.
Merge pull request #200 from rbian/attach-detach-disk

Add disk cache test cases.