bug#41001: mkdir: cannot create directory ‘test’: File exists

2020-05-07 Thread Eric Blake
On 5/7/20 6:29 AM, Jonny Grant wrote: We already have mkdirat() specified by POSIX.  It would be easier to add a new O_ flag that tells mkdirat() to give a different errno failure than to add a completely new interface.  But emulating that new flag on older kernels that don't natively

bug#41001: mkdir: cannot create directory ‘test’: File exists

2020-05-07 Thread Jonny Grant
Hi Eric On 05/05/2020 20:58, Eric Blake wrote: On 5/5/20 1:36 PM, Jonny Grant wrote: Okay.  That's confusing.  The only value in hand being EEXIST then that is the error to be reported.  If this were repeated many times then sometimes we would catch it as an actual directory.