From: Sonny Rao Subject: Re: files of size larger than fs size Date: Tue, 15 Mar 2005 21:25:58 -0500 Message-ID: <20050316022558.GA14721@kevlar.burdell.org> References: <42379750.9030604@unn.ac.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Received: from dsl027-162-124.atl1.dsl.speakeasy.net ([216.27.162.124]:60594 "EHLO kevlar.burdell.org") by vger.kernel.org with ESMTP id S262473AbVCPCm2 (ORCPT ); Tue, 15 Mar 2005 21:42:28 -0500 To: Max Content-Disposition: inline In-Reply-To: <42379750.9030604@unn.ac.ru> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Mar 15, 2005 at 06:17:52PM -0800, Max wrote: > Hello! > > I've discovered that it is possible to create files of size much larger > than partition size. > I thought that this is JFS bug, so I've filed a bugreport against it at > http://bugzilla.kernel.org/show_bug.cgi?id=4345 > Detailed info and testcase program are provided there. > > Later I've found that at least XFS and EXT3 filesystems have the same > problem (though the resulting filesize is different for each fs). So the > problem may be not in fs code but in some other piece of kernel. > > Could kernel gurus please investigate the problem? > > P.S. I'm using debian-amd64 with kernel 2.6.11.3. So I didn't check if > 32-bit kernel has this bug. This is not a bug but a fairly standard UNIX feature where you are creating sparse files. If you stat these files, you'll see the actual number of filesystem blocks allocated is much smaller than the apparent length of the file. For more info: google.com This one looks like a decent overview: http://www.lrdev.com/lr/unix/sparsefile.html Sonny