linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: ext3 duplicate entries with readdir
       [not found] <20090303200526.GA20236@ub>
@ 2009-03-03 20:54 ` Mike Snitzer
  2009-03-03 21:51   ` Andries E. Brouwer
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Snitzer @ 2009-03-03 20:54 UTC (permalink / raw)
  To: Andries E. Brouwer; +Cc: linux-kernel, linux-ext4

On Tue, Mar 3, 2009 at 3:05 PM, Andries E. Brouwer
<Andries.Brouwer@cwi.nl> wrote:
> In a largish directory (21292 files) a scan using ext3 readdir
> found 21293 files, returning one entry twice.
>
> Google "ext3 readdir twice" gives me a handful of identical complaints.
> I see reports from 2002-2008.
> So, this is an old and well-known symptom but seemingly still not fixed,
> at least not in the kernel on this machine here.
> This report is for Fedora release 8 (Werewolf) with kernel 2.6.24.5.
>
> A 2002 post says "This is unfortunate, but the chances of our hitting
> this failure are relatively small".
>
> In http://www.redhat.com/archives/ext3-users/2008-August/msg00009.html
> tytso seems to understand what happens: a hash collision.
> But has this been fixed in the current tree?

Yes, it has been fixed, please see the following git commits:
6a897cf447a83c9c3fd1b85a1e525c02d6eada7d
8c9fa93d51123c5540762b1a9e1919d6f9c4af7c

Mike

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ext3 duplicate entries with readdir
  2009-03-03 20:54 ` ext3 duplicate entries with readdir Mike Snitzer
@ 2009-03-03 21:51   ` Andries E. Brouwer
  2009-03-04  1:57     ` Theodore Tso
  0 siblings, 1 reply; 6+ messages in thread
From: Andries E. Brouwer @ 2009-03-03 21:51 UTC (permalink / raw)
  To: Mike Snitzer; +Cc: Andries E. Brouwer, linux-kernel, linux-ext4

On Tue, Mar 03, 2009 at 03:54:02PM -0500, Mike Snitzer wrote:
> On Tue, Mar 3, 2009 at 3:05 PM, Andries E. Brouwer wrote:
>
>> In a largish directory (21292 files) a scan using ext3 readdir
>> found 21293 files, returning one entry twice.
>>
>> Has this been fixed in the current tree?
> 
> Yes, it has been fixed, please see the following git commits:
>
> 6a897cf447a83c9c3fd1b85a1e525c02d6eada7d
> 8c9fa93d51123c5540762b1a9e1919d6f9c4af7c

Good, thanks!

Andries


[On another machine, Ubuntu with 2.6.27-7-server still fails:
% ../readdirtest
expected 61005 files, but readdir reports 61006
% rm *
rm: cannot remove `59992': No such file or directory
(where the same name occurs twice in the expansion of *).]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ext3 duplicate entries with readdir
  2009-03-03 21:51   ` Andries E. Brouwer
@ 2009-03-04  1:57     ` Theodore Tso
  2009-03-09 14:13       ` Goswin von Brederlow
  0 siblings, 1 reply; 6+ messages in thread
From: Theodore Tso @ 2009-03-04  1:57 UTC (permalink / raw)
  To: Andries E. Brouwer; +Cc: Mike Snitzer, linux-kernel, linux-ext4

On Tue, Mar 03, 2009 at 10:51:26PM +0100, Andries E. Brouwer wrote:
> > Yes, it has been fixed, please see the following git commits:
> >
> > 6a897cf447a83c9c3fd1b85a1e525c02d6eada7d
> > 8c9fa93d51123c5540762b1a9e1919d6f9c4af7c
> 
> [On another machine, Ubuntu with 2.6.27-7-server still fails:
> % ../readdirtest
> expected 61005 files, but readdir reports 61006
> % rm *
> rm: cannot remove `59992': No such file or directory
> (where the same name occurs twice in the expansion of *).]

The patches were backported to 2.6.27 stable in 2.6.27.8.  So the
problem would expected to be still present in an 2.6.27.7 kernel.

	      	       	     	   	   - Ted

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ext3 duplicate entries with readdir
  2009-03-04  1:57     ` Theodore Tso
@ 2009-03-09 14:13       ` Goswin von Brederlow
  2009-03-09 16:00         ` Eric Sandeen
  0 siblings, 1 reply; 6+ messages in thread
From: Goswin von Brederlow @ 2009-03-09 14:13 UTC (permalink / raw)
  To: Theodore Tso; +Cc: Andries E. Brouwer, Mike Snitzer, linux-kernel, linux-ext4

Theodore Tso <tytso@mit.edu> writes:

> On Tue, Mar 03, 2009 at 10:51:26PM +0100, Andries E. Brouwer wrote:
>> > Yes, it has been fixed, please see the following git commits:
>> >
>> > 6a897cf447a83c9c3fd1b85a1e525c02d6eada7d
>> > 8c9fa93d51123c5540762b1a9e1919d6f9c4af7c
>> 
>> [On another machine, Ubuntu with 2.6.27-7-server still fails:
>> % ../readdirtest
>> expected 61005 files, but readdir reports 61006
>> % rm *
>> rm: cannot remove `59992': No such file or directory
>> (where the same name occurs twice in the expansion of *).]
>
> The patches were backported to 2.6.27 stable in 2.6.27.8.  So the
> problem would expected to be still present in an 2.6.27.7 kernel.
>
> 	      	       	     	   	   - Ted

Does the bug also affect xfs? Because I see the problem there.

MfG
        Goswin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ext3 duplicate entries with readdir
  2009-03-09 14:13       ` Goswin von Brederlow
@ 2009-03-09 16:00         ` Eric Sandeen
  2009-03-11 10:45           ` Goswin von Brederlow
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2009-03-09 16:00 UTC (permalink / raw)
  To: Goswin von Brederlow
  Cc: Theodore Tso, Andries E. Brouwer, Mike Snitzer, linux-kernel,
	linux-ext4

Goswin von Brederlow wrote:
> Theodore Tso <tytso@mit.edu> writes:
> 
>> On Tue, Mar 03, 2009 at 10:51:26PM +0100, Andries E. Brouwer wrote:
>>>> Yes, it has been fixed, please see the following git commits:
>>>>
>>>> 6a897cf447a83c9c3fd1b85a1e525c02d6eada7d
>>>> 8c9fa93d51123c5540762b1a9e1919d6f9c4af7c
>>> [On another machine, Ubuntu with 2.6.27-7-server still fails:
>>> % ../readdirtest
>>> expected 61005 files, but readdir reports 61006
>>> % rm *
>>> rm: cannot remove `59992': No such file or directory
>>> (where the same name occurs twice in the expansion of *).]
>> The patches were backported to 2.6.27 stable in 2.6.27.8.  So the
>> problem would expected to be still present in an 2.6.27.7 kernel.
>>
>> 	      	       	     	   	   - Ted
> 
> Does the bug also affect xfs? Because I see the problem there.

Completely different, and the wrong list for the question, really.

Please point me to the bug you filed for this problem on xfs, I'll look
into it (and when you do so please cc: the xfs list, and trim off the
current ext4-related recipients)

Thanks,

-Eric

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: ext3 duplicate entries with readdir
  2009-03-09 16:00         ` Eric Sandeen
@ 2009-03-11 10:45           ` Goswin von Brederlow
  0 siblings, 0 replies; 6+ messages in thread
From: Goswin von Brederlow @ 2009-03-11 10:45 UTC (permalink / raw)
  To: Eric Sandeen
  Cc: Goswin von Brederlow, Theodore Tso, Andries E. Brouwer,
	Mike Snitzer, linux-kernel, linux-ext4

Eric Sandeen <sandeen@redhat.com> writes:

> Goswin von Brederlow wrote:
>> Theodore Tso <tytso@mit.edu> writes:
>> 
>>> On Tue, Mar 03, 2009 at 10:51:26PM +0100, Andries E. Brouwer wrote:
>>>>> Yes, it has been fixed, please see the following git commits:
>>>>>
>>>>> 6a897cf447a83c9c3fd1b85a1e525c02d6eada7d
>>>>> 8c9fa93d51123c5540762b1a9e1919d6f9c4af7c
>>>> [On another machine, Ubuntu with 2.6.27-7-server still fails:
>>>> % ../readdirtest
>>>> expected 61005 files, but readdir reports 61006
>>>> % rm *
>>>> rm: cannot remove `59992': No such file or directory
>>>> (where the same name occurs twice in the expansion of *).]
>>> The patches were backported to 2.6.27 stable in 2.6.27.8.  So the
>>> problem would expected to be still present in an 2.6.27.7 kernel.
>>>
>>> 	      	       	     	   	   - Ted
>> 
>> Does the bug also affect xfs? Because I see the problem there.
>
> Completely different, and the wrong list for the question, really.
>
> Please point me to the bug you filed for this problem on xfs, I'll look
> into it (and when you do so please cc: the xfs list, and trim off the
> current ext4-related recipients)
>
> Thanks,
>
> -Eric

Haven't filed a bug and can't reproduce the problem but I had 2 cases
that behaved the same way so I wondered if it was the same
issue. Would have ment I could stop worrying about it and wouldn't
have to try to reproduce it.

MfG
        Goswin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-11 10:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20090303200526.GA20236@ub>
2009-03-03 20:54 ` ext3 duplicate entries with readdir Mike Snitzer
2009-03-03 21:51   ` Andries E. Brouwer
2009-03-04  1:57     ` Theodore Tso
2009-03-09 14:13       ` Goswin von Brederlow
2009-03-09 16:00         ` Eric Sandeen
2009-03-11 10:45           ` Goswin von Brederlow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).