From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Steve Simon" Date: Thu, 20 Nov 2008 12:59:38 +0000 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] fd2path and devsrv Topicbox-Message-UUID: 4afe2a0a-ead4-11e9-9d60-3106f5b1d025 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