Hi,
It is possible for mkdir(2) to return EINVAL in certain circumstances. However, the man page mkdir(2) doesn't mention that.
I am hitting it on overlayfs. Other instances reported:
So, it needs to be documented in man page for mkdir(2).
------
Raghavendra