help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mtab (was: Re: path+file_name from port or process info?


From: David Walter
Subject: Re: mtab (was: Re: path+file_name from port or process info?
Date: Thu, 25 Jul 2002 16:02:52 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Honest Recruiter, i386-unknown-gnu0.2)

Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:

>>              peropen->cntl->{file_id,filesys_id,underlying}.
>                                                   ^^^^^^^^^^
>
> that's the one.  From pfinet/main.c, for example:
>
>   err = trivfs_startup (bootstrap, 0,
>                         trivfs_cntl_portclasses[0], pfinet_bucket,
>                         trivfs_protid_portclasses[0], pfinet_bucket,
>                         &pfinetctl);

>   if (err)
>     error (1, err, "contacting parent");
>
>   /* Initialize status from underlying node.  */
>   err = io_stat (pfinetctl->underlying, &st);

If   so,  shouldn't     _hurd_canonicalize_filename_directory_internal
(peropen->cntl->underlying,0,0) return the path name if called in the 
server's open hook?

Unfortunately that doesn't work for me.

static error_t
open_hook (struct trivfs_peropen *peropen)
{
   fprintf(stderr, 
    "%s:%i:(f:%i:peropen->cntl->underlying%s)\n", __FILE__, __LINE__,
    peropen->cntl->underlying,
    _hurd_canonicalize_directory_name_internal(peropen->cntl->underlying,0,0));
   return 0;
}

error_t (*trivfs_peropen_create_hook)(struct trivfs_peropen *) = open_hook;

>> So where  I am stymied  is the use of  struct protid*cred, where I had
>> expected to find a file_t file.
>
> This is MiG auto-mutation, where a port is matched to a structure.  Just
> ignore it ;)

Oh? Where  should I go to find  out about when these translations take
place, and which side of the  rpc which is  used? Is there a doc about
when this happens and how to follow the mapping?


Thanks

-- 
Hurd References:
http://www.gnu.org/software/hurd/
http://www.freesoftware.fsf.org/thug/gnumach_hardware.html
http://ftp.walfield.org/pub/people/neal/papers/hurd-installation-guide/english/hurd-install-guide.html
http://www.vmlinux.org/twiki/bin/view/Hurd/WebHome



reply via email to

[Prev in Thread] Current Thread [Next in Thread]