Path: utzoo!utgpu!watserv1!watdragon!himacdonald From: himacdonald@watdragon.waterloo.edu (Hamish Macdonald) Newsgroups: comp.sys.amiga Subject: Re: Getting workbench to mount a subdirectory... Message-ID: <20599@watdragon.waterloo.edu> Date: 6 Feb 90 19:53:19 GMT References: <90036.140352EACONS@MTUS5.BITNET> <25085@swrinde.nde.swri.edu> Reply-To: himacdonald@watdragon.waterloo.edu (Hamish Macdonald) Organization: U. of Waterloo, Ontario Lines: 36 In article <25085@swrinde.nde.swri.edu> Kent D. Polk writes: >In article <90036.140352EACONS@MTUS5.BITNET> Ernie Anderson writes: >> 1) When we mount NFS (as sun: :-) it mounts it as the root directory >> of the sun, rather than the local directory we have set up. This isn't >> a problem from the CLI, but we would like to use Workbench (Just to show >> that it can be done, we ARE sitting next to a MACII). The obvious >> problem is that when we open the sun: disk icon, there isn't anything in >> it because there aren't any icons in the root directory of the sun. What >> we want to know is how to make a disk icon that when opened, shows the >> contents of the local directory. Can this be done? > >As I mentioned in jest last week, you can put lots of .info files >starting with a Disk.info at the root. This doesn't look too clean >and might raise the ire of your unix administrator though. ... >... You can change the 'snfs' program to have it's idea of the root directory be different from the one there now. Near the beginning of the NFs function is a line 'OpenHandle(...)'. This opens "/" at the moment. You could change this to open any directory you want if you like. If you made this your home directory, (say '/u/himacdonald'), an open of 'NF0:Disk.info' would become an open of '/u/himacdonald/Disk.info'. I believe you can still type 'CD NF0://' which would take you to '/' on Unix. Good luck. (I'm the friend Blair was talking about). Hamish. -- -------------------------------------------------------------------- watmath!watdragon!himacdonald himacdonald@watdragon.waterloo.edu "Guns seldom solve any problems; they merely decide whose will shall prevail for the time being." - Brian Jarvis