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: Paul Brook
Subject: Re: [Qemu-devel] Re: qemu disk on vfat
Date: Tue, 9 May 2006 03:11:22 +0100
User-agent: KMail/1.9.1

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).

Actually it isn't a Linux-ism, it's very common unix behavior. Both HPUX and 
Solaris extend the file, and are documented to do so.

The linux manpages also document that the file is padded with zeros. It's only 
if you dig into the glibc documentation that you discover this is a lie.

Paul




reply via email to

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