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

Removing a non-empty directory results in EIO #3

Closed
dsheets opened this issue Oct 3, 2015 · 3 comments
Closed

Removing a non-empty directory results in EIO #3

dsheets opened this issue Oct 3, 2015 · 3 comments

Comments

@dsheets
Copy link

dsheets commented Oct 3, 2015

On 27c4078, running

$ mkdir foo
$ touch foo/bar
$ rmdir foo

results in rmdir: failed to remove ‘foo’: Input/output error when either EEXIST or ENOTEMPTY is expected in this case. See http://pubs.opengroup.org/onlinepubs/9699919799/functions/rmdir.html for details.

@zeldovich
Copy link
Member

Thanks; you are absolutely correct that this is a bug and it would be good to fix. At the moment, neither fscq's implementation nor theorems attempt to return the right errno values (e.g., see our SOSP paper's eval section); almost every system call likely returns the wrong errnos.

@dsheets
Copy link
Author

dsheets commented Oct 3, 2015

Most of the errnos look correct/reasonable, actually. The only ones that we picked up are related to directory removal and renaming. Would you like me to file the other errno issue or leave it here?

I also have an nlink issue and a number of known unsupported feature issues. Would you like them filed or sent somewhere else or dropped?

@tchajed
Copy link
Member

tchajed commented Apr 9, 2019

This issue turns out to be fixed in FSCQ, which now propagates error codes at least in some cases.

@tchajed tchajed closed this as completed Apr 9, 2019
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

3 participants