Using dropbear to scp a file into Akaros on Qemu was hanging.  We sorted out
the issue, which (probably) is that DB was calling select() on a non-full
queue.  That was blocking until the timeout, since the events only fire when a
queue transitions from full/non-full (or empty/non-empty on the read side).

This patchset communicates the state of the FD's readability/writability via
stat, which requires adding bits to both 9p and POSIX's stat's mode.

Reinstall your kernel headers, rebuild iplib, and rebuild dropbear.

$ make xcc-install-headers
$ make install-libs
$ do whatever to make db from it's directory
$ make

------------
You can also find this patch set at:

[email protected]:brho/akaros.git
From: 67c28f6bd16a
To: 3b8664e0dfbd ssh

And view them at: 

https://github.com/brho/akaros/compare/67c28f6bd16a...3b8664e0dfbd

------------


Barret Rhoden (4):
  Have stat print a mode in octal
  Report readablity/writablility via 9p stat
  Export readable/writable bits via POSIX stat (XCC)
  Support select() on FDs that are already writable

 kern/drivers/dev/pipe.c     | 13 +++++++++----
 kern/include/ns.h           |  4 ++++
 kern/include/ros/fs.h       | 40 +++++++++++++++++++++++++---------------
 kern/src/net/devip.c        | 14 +++++++++++---
 kern/src/ns/convM2kdirent.c | 29 +++++++++++++++++++----------
 kern/src/ns/qio.c           | 12 ++++++++++++
 tests/stat.c                |  2 +-
 user/iplib/select.c         | 25 ++++++++++++++++---------
 8 files changed, 97 insertions(+), 42 deletions(-)

-- 
2.8.0.rc3.226.g39d4020

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to