Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755941AbXEFVDY (ORCPT ); Sun, 6 May 2007 17:03:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756183AbXEFVDY (ORCPT ); Sun, 6 May 2007 17:03:24 -0400 Received: from lazybastard.de ([212.112.238.170]:54415 "EHLO longford.lazybastard.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756168AbXEFVDX (ORCPT ); Sun, 6 May 2007 17:03:23 -0400 Date: Sun, 6 May 2007 22:59:02 +0200 From: =?utf-8?B?SsO2cm4=?= Engel To: Christoph Hellwig , Anton Altaparmakov , Bernd Eckenfels , linux-kernel@vger.kernel.org Subject: Re: Ext3 vs NTFS performance Message-ID: <20070506205901.GA11665@lazybastard.org> References: <0733FB88-3E6E-47B7-A55D-704B5C0DB239@cam.ac.uk> <20070504094610.GA31607@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070504094610.GA31607@infradead.org> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 942 Lines: 22 On Fri, 4 May 2007 10:46:10 +0100, Christoph Hellwig wrote: > > Which means the right place to fix this is samba. Samba just need > to intersept lseek and pread/pwrite to never allocate sparse files > but do the right thing instead. Now what the right thing would probably > be a preallocate instead of writing zeroes, and we need to provide the > infrastructure for them to do it, which is in progress currently. Why do preallocate and not just truncate the file? If the write is a single 0x00 somewhere beyond EOF, as appears to be the pattern, truncate will do just as well if not better. And it is available now. Jörn -- Joern's library part 6: http://www.gzip.org/zlib/feldspar.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/