Conversation
Notices
-
@p
plan9 namespaces questions:
1. Some times I get double folder entries in the namespace.
1a. Is there a way to print the files where the various bind and mount commands came from? What scripts should I be looking at other than plan9rc, termrc, cpurc?
1b. How do I select a specific folder from multiple ones that have the same name? Do I use inode numbers like in Linux?
2.
Why does the cpu service from "aux/listen1 -t tcp!*![targetPort /rc/bin/service/tcp17019" doesn't have the same namespace as its parent? For example it's missing '#S' being bound to /dev/.
This is the tcp17019 script:
#!/bin/rc
if(~ $#* 3){
netdir=$3
remote=$2!`{cat $3/remote}
}
fn server {
~ $#remote 0 || echo -n $netdir $remote >/proc/$pid/args
rm -f /env/'fn#server'
. <{n=`{read} && ! ~ $#n 0 && read -c $n} >[2=1]
}
exec tlssrv -a /bin/rc -c server