Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include EINVAL in mkdir(2) man page #6

Open
ronin13 opened this issue May 4, 2015 · 1 comment
Open

Include EINVAL in mkdir(2) man page #6

ronin13 opened this issue May 4, 2015 · 1 comment

Comments

@ronin13
Copy link

ronin13 commented May 4, 2015

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:

http://stackoverflow.com/questions/10015377/mkdir-pathname-with-symbol
http://lists.opensuse.org/opensuse-bugs/2009-05/msg01771.html
(and many others)

So, it needs to be documented in man page for mkdir(2).

@ronin13
Copy link
Author

ronin13 commented May 4, 2015

With perf trace, I can confirm (on CentOS 7.1 + overlayfs)

80407.179 ( 0.034 ms): perl/27590 mkdir(pathname: 0x214d6d0, mode: 511                                  ) = 0
 80414.361 ( 0.146 ms): perl/27590 mkdir(pathname: 0x214d6d0, mode: 511                                  ) = -22

-22 being -EINVAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ronin13 and others