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

9nbd does not properly report 9p transport errors #1

Open
garlick opened this issue Mar 31, 2015 · 1 comment
Open

9nbd does not properly report 9p transport errors #1

garlick opened this issue Mar 31, 2015 · 1 comment

Comments

@garlick
Copy link
Member

garlick commented Mar 31, 2015

In debugging netroot and the nbd9 dracut module, we encountered a situation where the name of the export did not match the name of the mount path. 9P was returning error 2 (ENOENT), but 9nbd was reporting EPROTO.

This slowed us down finding the root cause. It would be better if 9nbd had reported the 9P transport error directly.

@garlick
Copy link
Member Author

garlick commented Apr 2, 2015

Example: file exported with privport option. The mount.diod --9nbd-attach without privport simply hangs, and console says:

[  540.872260] 9nbd0/ses17: 9P session restart due to protocol failure

While diod server (in debug mode) says:

diod: P9_TVERSION tag 65535 msize 65536 version '9P2000.L'
diod: P9_RVERSION tag 65535 msize 65536 version '9P2000.L'
diod: P9_TATTACH tag 1 fid 0 afid -1 uname '' aname '/tftpboot/images/image' n_uname 0
diod: attach(0@localhost:/tftpboot/images/image): access denied for export: Operation not permitted
diod: P9_RLERROR tag 1 ecode 1

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