From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdHni-0000kU-9i for qemu-devel@nongnu.org; Mon, 08 May 2006 22:18:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdHng-0000ib-VZ for qemu-devel@nongnu.org; Mon, 08 May 2006 22:18:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdHng-0000iR-Rp for qemu-devel@nongnu.org; Mon, 08 May 2006 22:18:12 -0400 Received: from [65.74.133.6] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FdHoe-0006vv-1M for qemu-devel@nongnu.org; Mon, 08 May 2006 22:19:12 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Re: qemu disk on vfat Date: Tue, 9 May 2006 03:11:22 +0100 References: <1147218062.9211.2.camel@localhost> <20060508235024.GA18407@jbrown.mylinuxbox.org> <445FF20F.5070309@codemonkey.ws> In-Reply-To: <445FF20F.5070309@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605090311.24174.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori 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