Sam Hopkins | 9 Apr 2009 16:59
Picon

mounting host fs

Hello,

In hosted Inferno, how does one mount the host os's filesystem?  I'm
looking for a /mnt/term like thing.

Cheers,

Sam

Benjamin Huntsman | 9 Apr 2009 17:30

RE: mounting host fs

>In hosted Inferno, how does one mount the host os's filesystem?  I'm
>looking for a /mnt/term like thing.

acme-sac does this quite nicely (from /lib/sh/profile):

if {~ $emuhost MacOSX}{
    trfs '#U*' /n/local >[2] /dev/null
    ghome=`{echo 'echo $HOME' | os sh}
    lhome=/n/local/^$ghome^/acme-home
}{~ $emuhost Linux}{
    trfs '#U*' /n/local >[2] /dev/null
    ghome=`{echo 'echo $HOME' | os sh}
    lhome=/n/local/^$ghome^/acme-home
}{~ $emuhost Nt}{
    for i in C D {  # add more drive letters to suit
        trfs '#U' ^ $i ^ ':/' /n/$i >[2] /dev/null
    }

You end up with the host's filesystem on /n/...

-Ben

Attachment (winmail.dat): application/ms-tnef, 2668 bytes
Eric Van Hensbergen | 9 Apr 2009 17:24
Picon
Gravatar

Re: mounting host fs

'#U' - for infernoroot in host namespace
'#U*' - for the root of the host namespace

   -eric

On Thu, Apr 9, 2009 at 9:59 AM, Sam Hopkins <s.a.hopkins@...> wrote:
> Hello,
>
> In hosted Inferno, how does one mount the host os's filesystem?  I'm
> looking for a /mnt/term like thing.
>
> Cheers,
>
> Sam
>

Sam Hopkins | 9 Apr 2009 18:12
Picon

Re: mounting host fs

Heh, 4 responses in under an hour!  Thanks all, fs(3) was what I was hunting.

Sam

On Thu, Apr 9, 2009 at 11:24 AM, Eric Van Hensbergen <ericvh@...> wrote:
> '#U' - for infernoroot in host namespace
> '#U*' - for the root of the host namespace
>
>   -eric
>
>
> On Thu, Apr 9, 2009 at 9:59 AM, Sam Hopkins <s.a.hopkins@...> wrote:
>> Hello,
>>
>> In hosted Inferno, how does one mount the host os's filesystem?  I'm
>> looking for a /mnt/term like thing.
>>
>> Cheers,
>>
>> Sam
>>
>

Mechiel Lukkien | 9 Apr 2009 17:18
Picon
Picon
Favicon

Re: mounting host fs

On Thu, Apr 09, 2009 at 10:59:39AM -0400, Sam Hopkins wrote:
> Hello,
> 
> In hosted Inferno, how does one mount the host os's filesystem?  I'm
> looking for a /mnt/term like thing.

cd '#U*'

http://www.vitanuova.com/inferno/man/3/fs.html

mjl

C H Forsyth | 9 Apr 2009 17:29
Favicon

Re: mounting host fs

see fs(3) for the peculiar spec values for #U that
give access to more of the underlying file system.


Gmane