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
|