> On Nov 19, 2008, at 7:32 PM, erik quanstrom wrote:
> >> Sure it can:
> >> % srv tcp!sources.cs.bell-labs.com!9fs test
> >> % ls /net/tcp
> >> /net/tcp/0
> >> /net/tcp/1
> >> /net/tcp/2
> >> /net/tcp/clone
> >> % mount -n /net/tcp/2/data /n/test
> >> %
> >
> > ; mount /net/il/0/data /n/x
> > mount: mount /n/x: version conversion
>
> Huh? What gives -- of course I ran my example
> in 9vx, but it shouldn't matter -- should it?
your example does work; mine was a counter example.
but in pointing out the nits, i missed the point.
according to the ns(1) man page
[...]The out-
put is in the form of an rc(1) script that could, in princi-
ple, recreate the name space. The output is produced by
reading and reformatting the contents of /proc/pid/ns.
so following fd2path along its merry way down
to the source doesn't help generating such a script.
i could think of cases where it would be a hinderance.
perhaps you want a new program, nsroot that does
what you suggest.
- erik