Linux ext3 readdir and concurrent updates

Posted by Wangnick on Stack Overflow See other posts from Stack Overflow or by Wangnick
Published on 2010-05-28T11:13:00Z Indexed on 2010/05/30 11:32 UTC
Read the original article Hit count: 357

Filed under:
|
|

Dear all,

we are receiving about 10000 messages per hour. We store them as individual files in hourly directories on an ext3 filesystem. The file name includes a sequence number. We use rsync to mirror these files every 20 seconds at another location (via a SAN, but that doesn't matter).

Sometimes an rsync run picks up files n-3, n-2, n-1, n+1, and then next rsync run continues with n, n+2, n+3, n+4 and so on.

Is it possible that when one process creates files in a certain sequence within a directory, that another process using readdir() sees the files appearing in a different sequence?

Kind regards, Sebastian

© Stack Overflow or respective owner

Related posts about linux

Related posts about concurrency