Bug 760871

Summary: qemu-img create disk failed when use decimal disk size
Product: Red Hat Enterprise Linux 5 Reporter: daiwei <wdai>
Component: kvmAssignee: Kevin Wolf <kwolf>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 5.8CC: juzhang, michen, mkenneth, rhod, shuang, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-07 10:31:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description daiwei 2011-12-07 08:44:40 UTC
Description of problem:

use qemu-img to create a disk with decimal in size number failed.

Version-Release number of selected component (if applicable):
kernel:
2.6.18-300.el5

kvm:
kvm-83-246.el5
kvm-qemu-img-83-246.el5

How reproducible:
100%

Steps to Reproduce:
1.install a host with above kernel and kvm version

2.in host run:
# qemu-img create -f qcow2 disk.qcow2 2.2G

3.
  
Actual results:

create disk failed.

Expected results:

create disk should be successfully.

Additional info:
1.create raw disk also have this problem.
2.not use decimal disk size without this problem.
eg
# qemu-img create -f qcow2 disk.qcow2 22G

3.in RHEL6.2 host no this problem.

Comment 1 Kevin Wolf 2011-12-07 10:31:17 UTC
Decimal values for sizes are a new feature in qemu 0.11 and therefore not available in RHEL 5.