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

EIO is returned instead of EDQUOT #272

Closed
benrubson opened this issue Jan 23, 2017 · 2 comments
Closed

EIO is returned instead of EDQUOT #272

benrubson opened this issue Jan 23, 2017 · 2 comments

Comments

@benrubson
Copy link
Contributor

Hello,

EIO is returned instead of EDQUOT, which can confuse the user searching for the error root cause.

Example :

# zfs create home/test
# zfs set userquota@root=1G home/test
# dd if=/dev/zero of=/home/test/toobig bs=128k
dd: /home/test/toobig: Disc quota exceeded
# rm /home/test/toobig 
# mkdir /home/test/one
# mkdir /home/test/two
# echo "p
password" | encfs -S /home/test/one/ /home/test/two/
# mount | grep fuse
/dev/fuse on /home/test/two (fusefs, local, synchronous)
# dd if=/dev/zero of=/home/test/two/toobig bs=128k
dd: /home/test/two/toobig: Input/output error

dd, writing to fuse/encfs, should have returned EDQUOT instead of EIO.

Sounds like the issue comes from this :
https://github.com/vgough/encfs/blob/v1.9.1/encfs/encfs.cpp#L625

Could we relay the underlying error please ?

Many thanks 👍

Ben

@benrubson
Copy link
Contributor Author

benrubson commented Jan 25, 2017

Solved by #295 👍

@benrubson
Copy link
Contributor Author

Committed !

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

1 participant