-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
lib/9pfs: Fix create call for 9p.2000L #934
Conversation
Hi, @StefanJum, I know this solves the issue, but it doesn't attack the underlying problem of the calls made for |
I was nerd-sniped by this issue and investigated a bit the logs from unikraft/run-app-elfloader#16.
The
It looks like both
Separately the value of
I'm not yet fully satisfied with this answer as it doesn't explain the difference between binary-compat and native, but it might help point in the right direction. LE: On further thought and investigation, while the above are slightly problematic when using 9P.2000L I don't believe this is why the binary-compat is failing.
I don't have kernel development stuff installed on my workstation to test this out now, but I'll give it a try tomorrow. |
Hi @cbanu96, thanks for looking into this 🎉. We'll still need to update the flags of the |
The `uk_9pfs_create` call for `9p.2000L` uses posix flags for open file permissions. The 9P server however will expect specific 9p2000.L flags. 9p2000.L flags declaration are taken from the 9p protocol manual and QEMU implementation: * http://9p.io/magic/man2html/5/intro * https://lxr.missinglinkelectronics.com/qemu/hw/9pfs/9p.h#L368 Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
3a3c37e
to
ca5ec33
Compare
✅ Checkpatch passed Beep boop! I ran Unikraft's
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good with me. I tested with most of the apps and seems to work fine. Many thanks @StefanJum
Reviewed-by: Radu Nichita radunichita99@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved-by: Razvan Deaconescu razvand@unikraft.io
Prerequisite checklist
checkpatch.uk
on your commit series before opening this PR;The
uk_9pfs_create
call for9p.2000L
uses posix flags for open filepermissions. The 9P server however will expect specific 9p2000.L flags.
9p2000.L flags declaration are taken from the 9p protocol manual and
QEMU implementation:
Most of the flags are identical, so using posix flags did not cause any troubles just yet, but
we should use the proper ones.
Discovered while investigating unikraft/run-app-elfloader#16