From: Nikita Danilov Subject: Re: Expected getdents behaviour Date: Thu, 15 Sep 2005 22:08:23 +0400 Message-ID: <17193.47255.97232.981825@gargle.gargle.HOWL> References: <1126793268.1676.9.camel@imp.csi.cam.ac.uk> <1126793558.1676.15.camel@imp.csi.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from moraine.clusterfs.com ([66.96.26.190]:54735 "EHLO moraine.clusterfs.com") by vger.kernel.org with ESMTP id S932443AbVIPHii (ORCPT ); Fri, 16 Sep 2005 03:38:38 -0400 To: Anton Altaparmakov In-Reply-To: <1126793558.1676.15.camel@imp.csi.cam.ac.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Anton Altaparmakov writes: [...] > > Bonnie++'s code is just complete crap... It is the author's fault that > it will not work on filesystems where the directory entries are not in > fixed locations... Unfortunately Single UNIX Specification states that "offset" (telldir(3)'s result) is only invalidated by calls to rewinddir(3). It is true that for certain (heh, almost _all_ non-s5fs-descending) file systems it is hard to maintain directory offsets stable in the face on concurrent directory modifications, but that's what current standards require and what user level software relies upon. > > Best regards, > > Anton Nikita.