All of lore.kernel.org
 help / color / mirror / Atom feed
* readdir loses renamed files
@ 2004-10-25  1:21 Timo Sirainen
  2004-10-25  8:29 ` Chris Wedgwood
  2004-10-25 12:37 ` Theodore Ts'o
  0 siblings, 2 replies; 17+ messages in thread
From: Timo Sirainen @ 2004-10-25  1:21 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 753 bytes --]

I'd have thought this had already been asked many times before, but 
google didn't show me anything.

My problem is that mails in a large maildir get temporarily lost. This 
happens because readdir() never returns a file which was just rename()d 
by another process. Either new or the old name would have been fine, 
but it's not returned at all.

Is there a chance this could get fixed? Every OS/filesystem I've tested 
so far has had the same problem, so I'll have to implement some extra 
locking anyway (so much for maildir being lockless), but it would be 
nice to have at least one OS where it works without the extra locking 
overhead.

I have a test program if someone wants to try it: 
http://dovecot.org/tmp/readdir.c

(and please Cc replies)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

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

end of thread, other threads:[~2004-11-01  5:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25  1:21 readdir loses renamed files Timo Sirainen
2004-10-25  8:29 ` Chris Wedgwood
2004-10-25 12:35   ` Timo Sirainen
2004-10-25 12:47     ` Jan Engelhardt
2004-10-25 12:37 ` Theodore Ts'o
2004-10-25 13:22   ` Timo Sirainen
2004-10-28  9:34   ` Matthias Andree
2004-10-28 11:44     ` Andreas Dilger
2004-10-28 14:34       ` Jan Engelhardt
2004-10-28 15:41       ` Matthias Andree
2004-10-29 21:15       ` Hans Reiser
2004-10-29 21:28         ` Jan Engelhardt
2004-10-30 19:11           ` Hans Reiser
2004-10-31  6:32             ` Jan Engelhardt
2004-11-01  5:38               ` Hans Reiser
2004-10-28 17:06     ` Theodore Ts'o
2004-10-28 19:00       ` Bernd Eckenfels

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.