From: Steven French Subject: Re: File perforation. Date: Sun, 12 Jan 2003 21:52:20 -0600 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.194.23]) by e32.co.us.ibm.com (8.12.2/8.12.2) with ESMTP id h0D3qNYk067354 for ; Sun, 12 Jan 2003 22:52:23 -0500 Received: from d03nm123.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay02.boulder.ibm.com (8.12.3/NCO/VER6.4) with ESMTP id h0D3qMsG024620 for ; Sun, 12 Jan 2003 20:52:22 -0700 To: Bryan Henderson List-Id: linux-fsdevel.vger.kernel.org I am not at all sure that it is a hint your theory is just as plausible. Sounds like it is time for me to do some experimentation to prove if your theory is correct. Steve French Senior Software Engineer Linux Technology Center - IBM Austin phone: 512-838-2294 email: sfrench@us.ibm.com From: Bryan Henderson on 01/10/2003 07:46 PM To: Steven French/Austin/IBM@IBMUS cc: linux-fsdevel@vger.kernel.org From: Bryan Henderson/San Jose/IBM@IBMUS Subject: Re: File perforation. (Document link: Steven French) >The sparse concept is interesting for my particular vfs as well - Windows >has an attribute flag presumably to allow an application to supply a hint >to the filesystem (when creating a file) that a particular inode is going >to be written sparsely. How sure are you that that's a hint about future access? My understanding (based on very little authority) is that it is actually a _request_ to allocate the file sparsely. I.e. if you don't turn on that flag and then write a byte at 0 and a byte at Block 99, Windows allocates 100 blocks of disk space. If you do turn it on, Windows allocates two blocks. The reason you'd want the 100 block case is to be sure that when you later go to fill in the middle, you don't get told there's no space. And it is default for backward compatibility because the ancestral filesystem type wasn't sophisticated enough to do sparse. -- Bryan Henderson IBM Research San Jose CA Filesystems