qemu-img should give reasons for failing

Bug #418112 reported by Colin Watson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Wishlist
Unassigned
qemu (Ubuntu)
Won't Fix
Wishlist
Unassigned
qemu-kvm (Ubuntu)
Fix Released
Wishlist
Dustin Kirkland 

Bug Description

Binary package hint: qemu

  $ kvm-img create -f qcow2 disks/t.img 4000M
  Formatting 'disks/t.img', fmt=qcow2, size=4096000 kB
  qemu-img: Error while formatting

strace shows that the real error was "Permission denied". It should say so, using strerror.

ProblemType: Bug
Architecture: i386
Date: Mon Aug 24 13:31:45 2009
DistroRelease: Ubuntu 9.10
Package: qemu 0.10.6-1ubuntu1
ProcEnviron:
 LANGUAGE=en_GB.UTF-8
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-5.24-generic
SourcePackage: qemu
Uname: Linux 2.6.31-5-generic i686

Related branches

Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Confirmed:

kirkland@x200:~$ kvm-img create -f qcow2 /root/t.img 4000M
Formatting '/root/t.img', fmt=qcow2 size=4194304000 encryption=off cluster_size=0
qemu-img: Error while formatting

Should be EPERM.

Anthony-

This should be pretty reasonable to solve upstream, no?

:-Dustin

Changed in qemu (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
affects: qemu (Ubuntu) → qemu-kvm (Ubuntu)
Changed in qemu (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
Changed in qemu:
status: New → Confirmed
importance: Undecided → Wishlist
Changed in qemu (Ubuntu):
status: Confirmed → Won't Fix
Changed in qemu-kvm (Ubuntu):
status: Confirmed → Triaged
Changed in qemu:
status: Confirmed → Triaged
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

qemu-img create -f qcow2 /root/t.img 4000M
Formatting '/root/t.img', fmt=qcow2 size=4194304000 encryption=off cluster_size=0
qemu-img: Error while formatting (Operation not permitted)

Look better Colin?

Anthony, will you take this attached patch upstream?

:-Dustin

Changed in qemu-kvm (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
status: Triaged → In Progress
Changed in qemu:
status: Triaged → In Progress
Changed in qemu-kvm (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qemu-kvm - 0.11.0~rc2-0ubuntu4

---------------
qemu-kvm (0.11.0~rc2-0ubuntu4) karmic; urgency=low

  * debian/patches/05_improve-qemu-img-errors.patch: use strerror()
    for qemu-img error reporting, LP: #418112
  * fix links

 -- Dustin Kirkland <email address hidden> Thu, 10 Sep 2009 22:58:09 -0500

Changed in qemu-kvm (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 418112] Re: qemu-img should give reasons for failing

Much better, thanks.

description: updated
Changed in qemu:
status: In Progress → 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.