Commit [c0f09a]  Maximize  Restore  History

net/9p: enable 9p to work in non-default network namespace

Teach 9p filesystem to work in container with non-default network namespace.
(Note: I also patched the unix domain socket code but don't have a test case
for that. It's the same fix, I just don't have a server for it...)

To test, run diod server (
diod -n -f -L stderr -l -c /dev/null -e /root
and then mount like so:
mount -t 9p -o port=9999,aname=/root,version=9p2000.L /mnt

A container test environment is described at

Signed-off-by: Rob Landley <>
Signed-off-by: Eric Van Hensbergen <>

Rob Landley Rob Landley 2011-05-24

Eric Van Hensbergen Eric Van Hensbergen 2011-05-24

changed net
changed net/9p
changed net/9p/trans_fd.c
net/9p/trans_fd.c Diff Switch to side-by-side view