Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261280AbUKAFii (ORCPT ); Mon, 1 Nov 2004 00:38:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261312AbUKAFii (ORCPT ); Mon, 1 Nov 2004 00:38:38 -0500 Received: from rwcrmhc13.comcast.net ([204.127.198.39]:728 "EHLO rwcrmhc13.comcast.net") by vger.kernel.org with ESMTP id S261280AbUKAFig (ORCPT ); Mon, 1 Nov 2004 00:38:36 -0500 Message-ID: <4185CBDC.6090502@namesys.com> Date: Sun, 31 Oct 2004 21:38:36 -0800 From: Hans Reiser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jan Engelhardt CC: linux-kernel@vger.kernel.org, Vladimir Demidov Subject: Re: readdir loses renamed files References: <431547F9-2624-11D9-8AC3-000393CC2E90@iki.fi> <20041025123722.GA5107@thunk.org> <20041028093426.GB15050@merlin.emma.line.org> <20041028114413.GL1343@schnapps.adilger.int> <4182B2FF.9040902@namesys.com> <4183E775.3090701@namesys.com> In-Reply-To: X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 33 Jan Engelhardt wrote: >>>>It should be possible to perform an atomic readdir if that is what you >>>>want to do and if you have space in your process to stuff the result. >>>> >>>> >>>How much would it cost to always append the new name into the directory rather >>>than modifying it in place? >>> >>> >>Forgive me, what does the sentence above mean? Paste it out of order? >> >> > >As I have read from earlier replies, ext2/3 replaces a filename with the new >one, given that it is the same length or shorter, and especially that might >skip a while when readdir()ing. >So I was concerned about the speed impact which would arise, if the filename >was never modified in-place but always appended as a new object to the >end-of-directory. > > > >Jan Engelhardt > > The api is fundamentally broken. Sorry. Will try to avoid making that mistake in sys_reiser4. - 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/