qemu-img fails with "error while compressing sector 5121920: Input/output error" when -c flag is passed

Bug #1491050 reported by Krishna Miriyala (కృష్న మిరియాల)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Running qemu-img utility with -c option for compression alway fails with the following error on any file (most probably > 2G),

qemu-img convert -c -O qcow2 disk2.qcow2.original disk2.qcow2
qemu-img: error while compressing sector 5121920: Input/output error

This looks similar to the bug fixed in
https://bugzilla.redhat.com/show_bug.cgi?id=1214855

krishna@krishna-ubuntu:/vms/windows_office$ lsb_release -rd
Description: Ubuntu Wily Werewolf (development branch)
Release: 15.10
krishna@krishna-ubuntu:/vms/windows_office$ apt-cache policy qemu-utils
qemu-utils:
  Installed: 1:2.3+dfsg-5ubuntu4
  Candidate: 1:2.3+dfsg-5ubuntu4
  Version table:
 *** 1:2.3+dfsg-5ubuntu4 0
        500 http://us.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status

Can this bug/patch be added to Ubuntu 15.10?

summary: - qemu-img fails with krishna@krishna-ubuntu:/vms/windows_office$ qemu-img
- convert -c -O qcow2 disk2.qcow2.original disk2.qcow2 qemu-img: error
- while compressing sector 5121920: Input/output error when -c flag is
- passed
+ qemu-img fails with "error while compressing sector 5121920:
+ Input/output error" when -c flag is passed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug. I'm pushing the fix to wily right now.

Changed in qemu (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qemu - 1:2.3+dfsg-5ubuntu5

---------------
qemu (1:2.3+dfsg-5ubuntu5) wily; urgency=medium

  * Import qcow2-handle-eagain-from-update_refcount from upstream
    to fix errors when using qemu-img convert -c. (LP: #1491050)

 -- Serge Hallyn <email address hidden> Fri, 04 Sep 2015 16:35:56 -0500

Changed in qemu (Ubuntu):
status: Triaged → 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.