Convert omode to 9p for devmnt [4/7]
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 15 Sep 2015 16:15:22 +0000 (12:15 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
commit2d5e5c030779e14ef58692a016bc3aab07958d29
treebc5ef3fd995f5d1a03fde28f3cef4ebb990f01e8
parent914578baf1c13c327b76b4eebf08f34902bebf01
Convert omode to 9p for devmnt [4/7]

9p expects the mode to match a format similar to POSIX, based on
http://man.cat-v.org/plan_9/5/open.  Since Akaros allows O_EXEC to be
or-ed with READ and WRITE, but 9p doesn't, we just treat O_EXEC as
O_READ for purposes of the conversion.

Note that we cannot express "no I/O permissions" across 9p.
kern/drivers/dev/mnt.c
kern/include/ns.h
kern/src/ns/util.c