Bug 704943 - Size of volume in cow type should display as virtual size in virt-manager
Summary: Size of volume in cow type should display as virtual size in virt-manager
Keywords:
Status: CLOSED DUPLICATE of bug 704145
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-manager
Version: 5.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 709643
TreeView+ depends on / blocked
 
Reported: 2011-05-16 04:52 UTC by Min Zhan
Modified: 2011-07-12 23:26 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 709643 (view as bug list)
Environment:
Last Closed: 2011-07-12 23:26:22 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Min Zhan 2011-05-16 04:52:01 UTC
Description of problem:
When create a volume in virt-manager, format as cow, allocate 10M, but after finish creating,  the size display as 0M in the vol list.

Version-Release number of selected component (if applicable):
# uname -a
Linux dhcp-4-216 2.6.18-256.el5xen #1 SMP Thu Apr 7 20:09:34 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
xen-3.0.3-127.el5
libvirt-0.8.2-19.el5
virt-manager-0.6.1-14.el5

How reproducible:
Always

Steps to Reproduce:
1. In dir pool, Click New Volume, input the vol-name, and Format as Cow, Max capacity as 10M, Allocation as 10M, Then finish
2. Check the newly created vol in the volumes list
  
Actual results:
The size display as 0M

# qemu-img info /var/lib/libvirt/dir/a1.img
image: /var/lib/libvirt/dir/a1.img
file format: cow
virtual size: 10M (10485760 bytes)
disk size: 8.0K

# du -s -B1 /var/lib/libvirt/dir/a1.img 
8192	/var/lib/libvirt/dir/a1.img


Expected results:
The size should display as virtual size,which is 10M

Additional info:
For qcow2, qcow, raw type, they all display the virtual size as Size value, not the disk size. I think they should keep consistent.

Comment 1 RHEL Program Management 2011-06-21 05:25:57 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 3 Cole Robinson 2011-07-12 23:26:22 UTC

*** This bug has been marked as a duplicate of bug 704145 ***


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