NAME
trfs – translate spaces and other runes in file names file system

SYNOPSIS
trfs [ –Dv ] [ –Rune ] [ –s srvfile ] [ –n addr ] servename

DESCRIPTION
Trfs translates 9P requests exchanged between a client and a file server. The translation replaces spaces seen in remote file names to a different rune. The same is done with left and right parenthesis, ampersands and single quotes.

The rune used instead of space within file names can be selected by specifying it as an option.

Trfs reaches the server through the servename file or through a network connection to the addr address given to the –n option. The client mounts the file posted by trfs in srv(4). The file posted is named /srv/trfs by default, but it can be /srv/srvfile when the option –s is used, and also /srv/addr when the option –n is given.

Option –v instructs trfs to print to standard error a human readable copy of messages exchanged. This makes trfs useful to debug file servers. The –D option enables debug messages.

EXAMPLE
These examples dial a foreign system, start trfs, and mount it at /n/remote. Names like /n/remote/music/alan parsons that contaning blanks would be renamed to names like /n/remote/music/alan␣parsons.

srv tcp!foreign
trfs –s foreign.tr /srv/tcp!foreign
mount –c /srv/foreign.tr /n/remote
trfs –n tcp!foreign
mount –c /srv/tcp!foreign /n/remote

SOURCE
/sys/src/cmd/trfs.c

BUGS
Spaces in remote file names are not caught when found inside file names or other media. The rune used instead of space might be used in remote file names leading to confussion. The same happens with remaining runes subject to translation.
Copyright © 2008 Lucent Technologies. All rights reserved.