trfs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. .TH TRFS 4
  2. .SH NAME
  3. trfs \- translate spaces and other runes in file names file system
  4. .SH SYNOPSIS
  5. .B trfs
  6. [
  7. .B -Dv
  8. ]
  9. [
  10. .B -\fIRune\fP
  11. ]
  12. [
  13. .B -s
  14. .I srvfile
  15. ]
  16. [
  17. .B -n
  18. .I addr
  19. ]
  20. .I servename
  21. .SH DESCRIPTION
  22. .I Trfs
  23. translates 9P requests exchanged between a client and a file
  24. server. The translation replaces spaces seen in remote file names
  25. to a different rune. The same is done with left and right parenthesis,
  26. ampersands and single quotes.
  27. .PP
  28. The rune used instead of space within file names
  29. can be selected by specifying it as an option.
  30. .PP
  31. .I Trfs
  32. reaches the server through the
  33. .I servename
  34. file or through a network connection to the
  35. .I addr
  36. address given to the
  37. .B -n
  38. option.
  39. The client mounts the file posted by
  40. .I trfs
  41. in
  42. .IR srv (4).
  43. The file posted is named
  44. .B /srv/trfs
  45. by default, but it can be
  46. .B /srv/\fIsrvfile\fP
  47. when the option
  48. .B -s
  49. is used, and also
  50. .B /srv/\fIaddr\fP when the option
  51. .B -n
  52. is given.
  53. .PP
  54. Option
  55. .B -v
  56. instructs
  57. .I trfs
  58. to print to standard error a human readable copy of messages exchanged. This
  59. makes
  60. .I trfs
  61. useful to debug file servers. The
  62. .B -D
  63. option enables debug messages.
  64. .SH EXAMPLE
  65. These examples dial a foreign system, start
  66. .IR trfs ,
  67. and mount it at
  68. .B /n/remote.
  69. Names like
  70. .B "/n/remote/music/alan parsons"
  71. that contaning blanks
  72. would be renamed to names like
  73. .B "/n/remote/music/alan␣parsons."
  74. .PP
  75. .EX
  76. srv tcp!foreign
  77. trfs -s foreign.tr /srv/tcp!foreign
  78. mount -c /srv/foreign.tr /n/remote
  79. trfs -n tcp!foreign
  80. mount -c /srv/tcp!foreign /n/remote
  81. .EE
  82. .SH SOURCE
  83. .B /sys/src/cmd/trfs.c
  84. .SH BUGS
  85. Spaces in remote file names are not caught when found inside file
  86. names or other media. The rune used instead of space might be used
  87. in remote file names leading to confussion. The same happens with remaining
  88. runes subject to translation.