#3159 race condition in file mkdir

obsolete: 8.5a3
closed-fixed
5
2005-06-09
2005-06-09
No

There is a race condition in file mkdir with two process atempting
to create the same multi-level directory path at the same time will
cause one of the processes to get an EEXIST error. This is caused
by one process creating a directory between the time the other
process checks if the directory exists and attempts to create it.

While this is uncommon on a single system, it's easy to reproduce
on a large cluster with a shared file system.

Discussion

  • Mark Diekhans

    Mark Diekhans - 2005-06-09

    tested patch to fix the bug

     
  • Donal K. Fellows

    • labels: 105657 --> 37. File System
    • assigned_to: dkf --> vincentdarley
     
  • Vince Darley

    Vince Darley - 2005-06-09

    Logged In: YES
    user_id=32170

    Thanks - will fix in cvs.

     
  • Vince Darley

    Vince Darley - 2005-06-09
    • status: open --> closed-fixed