INFRA Signal 170
[$] Reconsidering O_CREAT|O_DIRECTORY
WHY IT MATTERS
Currently, creating a directory with mkdir() and opening it with open() are separate operations, which introduces race conditions. A combined operation would allow engineers to handle directory creation atomically, avoiding concurrency issues.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
01
Linux currently lacks a system call that can create and open a directory simultaneously.
02
Performing these actions separately creates a race condition.
03
Jori Koolstra is working on a solution to combine these operations.
THE CLUSTER