Hide Forgot
Description of problem: Use "qemu-img info" to check libiscsi image, disk size of the image is unavailable. Version-Release number of selected component (if applicable): qemu-kvm-rhev-1.5.3-20.el7.x86_64 kernel-3.10.0-54.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Create a image which backend is libiscsi # qemu-img create -f qcow2 iscsi://10.66.6.82:3260/iqn.2013-11.com.example:storage.disk1.juli.xyz/1 30G 2. Check the info of the image # qemu-img info iscsi://10.66.6.82:3260/iqn.2013-11.com.example:storage.disk1.juli.xyz/1 Actual results: disk size: unavailable Expected results: disk size: 136K Additional info: Install a guest in this image and use "qemu-img info" to check it, disk size is also "unavailable".
This is okay. In fact the output for block devices is incorrect and should show "unavailable", but we probably cannot change it without breaking backwards-compatibility. $ sudo qemu-img info /dev/sda image: /dev/sda file format: raw virtual size: 298G (320072933376 bytes) disk size: 0