The dos(1) command I wrote (in the style of cpu(1) but attaches to Windows 
boxen)
uses a configuration file describing how the windows directories are
mounted (using cifs(1)) on plan9. It also reads /proc/$pid/namespace to
learn of any additional mounts so it can reliable translate plan9 paths
to windows ones and back again.

for example, I mount my home directory on the Windows server at $home/work in 
plan9
and then add various useful parts of the windows filesystem under that.

When I cd into one of these directories and run dos(1) it can then work out 
where
it should chdir(2) to on the windows box before starting cmd.exe.

Aditionally dos(1) keeps track of the current directory on windows and updates
/dev/wdir so the plumber and rio (for file name completeion) work as expected
even on the output of the windows DIR command.

Overall its a bit string and sticky-tape but it works and and you cannot
see the joins.

-Steve

Reply via email to