Discussion:
[9fans] discrepency between plan9 and ixpc
(too old to reply)
Eli Cohen
2012-01-21 21:41:57 UTC
Permalink
hello everyone, i have been working on a 9P arduino library. it works now
with ixpc from libixp, modified slightly to communicate over the serial
ixpc ls /
arductl
ardudata

however, i am getting this on plan9:

% echo b115200 > /dev/eiaU0/eiaUctl
% mount -ncC /dev/eiaU0/eiaU /n/anything
% ls /n/anything
anything

the output of ls is just whatever directory i mount it in, though accessing
arductl and ardudata works fine despite their absence from the directory
listing.

anyone have any ideas what i might be doing wrong?

the source code is at https://github.com/echoline/NinePea

ps.
and sorry for calling you a grinch
Anthony Martin
2012-01-21 22:48:34 UTC
Permalink
Post by Eli Cohen
% echo b115200 > /dev/eiaU0/eiaUctl
% mount -ncC /dev/eiaU0/eiaU /n/anything
% ls /n/anything
anything
the output of ls is just whatever directory i mount it in, though accessing
arductl and ardudata works fine despite their absence from the directory
listing.
anyone have any ideas what i might be doing wrong?
the source code is at https://github.com/echoline/NinePea
Without looking at the code it sounds like
you're not getting the Rstat correct. Does
the root qid return "/" for the stat name?

You can use iostats(4) to help investigate.

Cheers,
Anthony
Eli Cohen
2012-01-22 02:13:24 UTC
Permalink
Post by Anthony Martin
Post by Eli Cohen
% echo b115200 > /dev/eiaU0/eiaUctl
% mount -ncC /dev/eiaU0/eiaU /n/anything
% ls /n/anything
anything
the output of ls is just whatever directory i mount it in, though accessing
arductl and ardudata works fine despite their absence from the directory
listing.
anyone have any ideas what i might be doing wrong?
the source code is at https://github.com/echoline/NinePea
Without looking at the code it sounds like
you're not getting the Rstat correct. Does
the root qid return "/" for the stat name?
You can use iostats(4) to help investigate.
Cheers,
Anthony
thanks! that let me resolve the issue.

Loading...