Bug 1036957 - Disk size of libiscsi image is unavailable checked by "qemu-img info"
Summary: Disk size of libiscsi image is unavailable checked by "qemu-img info"
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 00:03 UTC by huiqingding
Modified: 2013-12-03 19:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-03 19:33:01 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description huiqingding 2013-12-03 00:03:48 UTC
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".

Comment 2 Paolo Bonzini 2013-12-03 19:33:01 UTC
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


Note You need to log in before you can comment on or make changes to this bug.