qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Jim C. Brown
Subject: Re: [Qemu-devel] Re: qemu disk on vfat
Date: Mon, 8 May 2006 19:10:32 -0400
User-agent: Mutt/1.4.2.1i

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 create a raw disc image on a FAT partition, use (from your example)
> > dd if=/dev/zero of=/mnt/partitions/windows0/qmeu-disk bs=1024 count=40960
> > 
> > It'll take a bit longer than qemu-img would but then it's having to write 
> > out 
> > every block in the disc image to the real disc.
> > 
> > Hope that helps.
> > 
> 
> Here is a patch that fixes the raw block driver. It is able to detect when
> creation of a sparse file failed and failback to using the dd method.
> 
> qemu-img works correctly with this patch.
> 
> -- 
> Infinite complexity begets infinite beauty.
> Infinite precision begets infinite perfection.

This version doesn't try to continue but just bails out when it is unable
to make sparse files.

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

Attachment: block.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]