Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

readdir for 9p2000.L #1001

Merged
merged 1 commit into from Sep 14, 2020
Merged

readdir for 9p2000.L #1001

merged 1 commit into from Sep 14, 2020

Conversation

rminnich
Copy link
Contributor

Working read of 9P2000.L directories. Note that you can cat
but not ls -l yet, as we don't have stat, and the first thing
ls does is stat the directory.

This works with a 9P2000.L server running at 192.168.0.1!8080
srv tcp!192.168.0.1!8080 x
mount -M N /srv/x /n/x
cat /n/x

Signed-off-by: Ronald G Minnich rminnich@gmail.com

gmacd
gmacd previously approved these changes Sep 14, 2020
fhs
fhs previously approved these changes Sep 14, 2020
sys/src/9/port/devmntn.c Outdated Show resolved Hide resolved
sys/src/9/port/devmntn.c Outdated Show resolved Hide resolved
@@ -298,6 +298,21 @@ convM2S(uint8_t *ap, uint nap, Fcall *f)
p += f->count;
break;

case Rreaddir:
if(p+BIT32SZ > ep) {
print("rreaddir: p %p ep %p damn\n", p, ep);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print("rreaddir: p %p ep %p damn\n", p, ep);
print("readdir: p %p ep %p damn\n", p, ep);

Working read of 9P2000.L directories. Note that you can cat
but not ls -l yet, as we don't have stat, and the first thing
ls does is stat the directory.

This works with a 9P2000.L server running at 192.168.0.1!8080
srv tcp!192.168.0.1!8080 x
mount -M N /srv/x /n/x
cat /n/x

Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
@rminnich
Copy link
Contributor Author

PTAL

@rminnich rminnich merged commit 290fcf0 into Harvey-OS:main Sep 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants