From 9abb41e95fbd57c16e30ac32ac3906f3bd814337 Mon Sep 17 00:00:00 2001 From: Patrick Strasser Date: Wed, 18 Aug 2004 08:29:16 +0000 Subject: none --- Hurd/HostmuxTranslator.mdwn | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Hurd/HostmuxTranslator.mdwn b/Hurd/HostmuxTranslator.mdwn index 6dc4177f..b3d1c8cc 100644 --- a/Hurd/HostmuxTranslator.mdwn +++ b/Hurd/HostmuxTranslator.mdwn @@ -14,9 +14,17 @@ ftpfs is a good example, that is even very usefull. With hostmux and ftpfs you c We assume you want to access the ftp root at all servers. The example host is ftp.yourbox.com. -Usermux is called via **settrans -fgap /ftp /hurd/hostmux /hurd/ftpfs /** . **-fg** makes settrans try hard to remove an existing old translator from **/ftp** . **/ftp** is where we want to set the translator. **/hurd/hostmux** is obiously out hostmux translator that will be started at **/ftp** and handle filesystem operations on **/ftp** and everything below (like **/ftp/ftp.yourbox.com/pub/**). **/hurd/ftpfs /** is the argument to hostmux. When **/ftp** is accessed, the first directory is interpreted as hostname and a new translator is set up with the **hostmux** arguments: +Usermux is called via **settrans -fgap /ftp /hurd/hostmux /hurd/ftpfs /** . -**ls /ftp/ftp.yourhost.com/pub/** lets hostmux start a new traslator **/hurd/ftpfs / ftp.yourhost.com** and serve it via **/ftp/ftp.yourhost.com/** as directory. Subsequent the directory **pub/** on **/ftp.yourhost.com/** can be accessed via the new created translator. +* **-fg** makes settrans try hard to remove an existing old translator from **/ftp** +* **ap** sets an active translator (starts the translator) and a passive translator (stores translator information in the filesystem with which an active translator can be started on access of this node) +* **/ftp** is where we want to set the translator +* **/hurd/hostmux** is obviously our hostmux translator that will be started at **/ftp** and handle filesystem operations on **/ftp** and everything below (like **/ftp/ftp.yourbox.com/pub/**) +* **/hurd/ftpfs /** is the argument to hostmux. + +When **/ftp** is accessed, the first directory is interpreted as hostname and a new translator is set up with the **hostmux** arguments: + +**ls /ftp/ftp.yourhost.com/pub/** lets hostmux start a new traslator **/hurd/ftpfs / ftp.yourhost.com** and serve it via **/ftp/ftp.yourhos  t.com/** as directory. Subsequent the directory **pub/** on **/ftp.yourhost.com/** can be accessed via the new created translator. You can see the new created transplator in the process list: **ps ax | grep ftpsfs** . You shoud see **/hurd/ftpfs / ftp.yourhost.com** . -- cgit v1.2.3