[CentOS-6.5] Support for both block device and image file