WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] qemu-img-xen broken?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] qemu-img-xen broken?
From: Nathan March <nathan@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Aug 2010 15:14:27 -0700
Delivery-date: Wed, 11 Aug 2010 15:15:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
 Hi All,

Trying to use qemu-img-xen from xen-4.0-testing to convert some raw disk images to qcow2.

xen5 var # qemu-img-xen convert -f raw -O qcow2 nathanxen_tmp nathanxen_tmp.qcow2
qemu-img: error while writing

Strace shows that qemu-img-xen is opening the file properly, writing a bunch, then closing it and reopening it as readonly before trying to write more to it? Someone know what the deal is here?

Thanks,
Nathan



open("nathanxen_tmp.qcow2", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 6
write(6, "QFI\373\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\0\200\0\0\0"..., 72) = 72
lseek(6, 4096, SEEK_SET)                = 4096
write(6, "\0\0\0\0\0\0\0\0", 8)         = 8
write(6, "\0\0\0\0\0\0\0\0", 8)         = 8
*snip*
lseek(6, 16384, SEEK_SET)               = 16384
write(6, "\0\1\0\1\0\1\0\1\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
close(6)                                = 0
open("nathanxen_tmp.qcow2", O_RDONLY)   = 6
lseek(6, 0, SEEK_END)                   = 20480
lseek(6, 0, SEEK_SET)                   = 0
read(6, "QFI\373\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\f\0\0\0\0\200\0\0\0"..., 72) = 72
lseek(6, 4096, SEEK_SET)                = 4096
read(6, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 8192 mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f58ce301000
lseek(6, 12288, SEEK_SET)               = 12288
read(6, "\0\0\0\0\0\0@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
lseek(5, 0, SEEK_END)                   = 2147483648
lseek(5, 0, SEEK_END)                   = 2147483648
lseek(5, 0, SEEK_END)                   = 2147483648
lseek(5, 0, SEEK_SET)                   = 0
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 65536) = 65536
lseek(6, 16384, SEEK_SET)               = 16384
read(6, "\0\1\0\1\0\1\0\1\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
lseek(6, 16394, SEEK_SET)               = 16394
write(6, "\0\1", 2)                     = -1 EBADF (Bad file descriptor)
lseek(6, 4096, SEEK_SET)                = 4096
write(6, "\200\0\0\0\0\0P\0", 8)        = -1 EBADF (Bad file descriptor)
write(2, "qemu-img: ", 10)              = 10
write(2, "error while writing", 19)     = 19
write(2, "\n", 1)                       = 1
exit_group(1)                           = ?

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] qemu-img-xen broken?, Nathan March <=