[Qemu-devel] Re: qemu disk on vfat

2006-08-20 Thread Alex
Are you sure coreect spelling is qmeu-disk, not qemu-disk? -- Alex. Yann Le Doaré [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] my option is -hda /mnt/partitions/windows0/qmeu-disk Le dimanche 07 mai 2006 à 05:44 -0300, André Braga a écrit : It's more likely a typo in your

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-16 Thread Jim C. Brown
On Mon, May 08, 2006 at 08:36:15PM -0500, Anthony Liguori wrote: Jim C. Brown wrote: Aactually, the bug is in vfat not in qemu-img. Not really. POSIX doesn't mandate that ftruncate() increase a file size. This is a Linux-ism and is only valid for filesystems that support holes (which

[Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Anthony Liguori
On Sun, 07 May 2006 08:13:01 +, Yann Le Doaré wrote: Hi, It seems like qemu 0.8.0 does not accept image file from a vfat partition. Is it a bug ? Greetings. Yann Le Doaré. strace : open(/mnt/partitions/windows0/qmeu-disk, O_RDONLY|O_LARGEFILE) = 7 read(7, , 1024)

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Yann Le Doaré
You are right ! : sh-2.05b# qemu-img create /mnt/partitions/windows0/qmeu-disk 4M Formating '/mnt/partitions/windows0/qmeu-disk', fmt=raw, size=4096 kB sh-2.05b# ls -al /mnt/partitions/windows0/qmeu-disk -rwxr-xr-x1 root root0 2006-05-09 23:37

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Michael McConnell
On Tue, 9 May 2006, Yann Le Doaré wrote: You are right ! : sh-2.05b# qemu-img create /mnt/partitions/windows0/qmeu-disk 4M Formating '/mnt/partitions/windows0/qmeu-disk', fmt=raw, size=4096 kB sh-2.05b# ls -al /mnt/partitions/windows0/qmeu-disk -rwxr-xr-x1 root root

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Ian C. Blenke
Yann Le Doaré wrote: You are right ! : sh-2.05b# qemu-img create /mnt/partitions/windows0/qmeu-disk 4M Formating '/mnt/partitions/windows0/qmeu-disk', fmt=raw, size=4096 kB sh-2.05b# ls -al /mnt/partitions/windows0/qmeu-disk -rwxr-xr-x1 root root0 2006-05-09

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Jim C. Brown
On Mon, May 08, 2006 at 11:05:00PM +0100, Michael McConnell wrote: IIRC creating a raw QEMU disc image makes use of sparse files, a concept not supported under FAT16/32. A qcow disc image should work fine. If you want to create a raw disc image on a FAT partition, use (from your example)

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Jim C. Brown
On Mon, May 08, 2006 at 06:48:46PM -0400, Jim C. Brown wrote: On Mon, May 08, 2006 at 11:05:00PM +0100, Michael McConnell wrote: IIRC creating a raw QEMU disc image makes use of sparse files, a concept not supported under FAT16/32. A qcow disc image should work fine. If you want to

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Jim C. Brown
Aactually, the bug is in vfat not in qemu-img. qemu-img correctly uses ftruncate() which is suppose to make the file sparse if the underlying filesystem supports it, but it should fall back to adding zeros to the end of the file. On vfat you aren't able to seek past the end of a file period, so

Re: [Qemu-devel] Re: qemu disk on vfat

2006-05-08 Thread Paul Brook
On Tuesday 09 May 2006 02:36, Anthony Liguori wrote: Jim C. Brown wrote: Aactually, the bug is in vfat not in qemu-img. Not really. POSIX doesn't mandate that ftruncate() increase a file size. This is a Linux-ism and is only valid for filesystems that support holes (which vfat doesn't).