creating qcow2 image with preallocation fails if size >=4G

Bug #1071236 reported by Marek Mrva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

Steps to reproduce:
  1. run> qemu-img create -f qcow2 -o cluster_size=512,preallocation=metadata disk.img 4G

Reproducible:
  Always

Configuration:
  Gentoo Linux 3.4.9, 64b
  latest qemu available from portage (afaik this is pulled from the git repo)

Possible workarounds:
  1. ommit preallocation=
  2. increase cluster_size
  3. reduce the image size

Although workarounds are available, it is still a bug that could (and should) be fixed.

Revision history for this message
Michael Tokarev (mjt+launchpad-tls) wrote :

This is fixed by the following patch: http://<email address hidden>/msg138606.html

Changed in qemu:
status: New → Confirmed
Revision history for this message
Michael Tokarev (mjt+launchpad-tls) wrote :

This is fixed by commit a3548077062dd9dc2701ebffd931ba6eaef40bec which is included in 1.3 release of qemu.

Changed in qemu:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.