On Tue, Feb 12, 2002 at 07:37:26PM +0100, Alfred M. Szmidt wrote:
> Yes, Marco Gerards suggested that we could print the PID of the active
> translator.  But I still have my doubts about this. But yeah, active
> translators should be handled in a similar way I think.

You can do what fsysopts for active translators (it looks like the output of
showtrans).

The process id is usually available in the f_fsid field of the statvfs
structure (the Hurd has fsid in stat, too, I think).  There is no guarantee
that it is a PID (the requirement is that it is a system-wide unique
identifier for the filesystem, so that fsid+inode is a system-wide unique
identifier for a file), but in the Hurd the convention is to use the PID
of the active translator (which is unique, and not reused soon, so it is a
nice fit for this purpose).

So if you want to do something like that, show the f_fsid, not the pid.  That
is a POSIX thing.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-hurd

Reply via email to