Bug 760871 - qemu-img create disk failed when use decimal disk size
Summary: qemu-img create disk failed when use decimal disk size
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.8
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Kevin Wolf
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-07 08:44 UTC by daiwei
Modified: 2011-12-07 10:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-07 10:31:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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