aquarela 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. .TH AQUARELA 8
  2. .SH NAME
  3. aquarela \- CIFS server
  4. .SH SYNOPSIS
  5. .B aquarela
  6. [
  7. .B -np
  8. ]
  9. [
  10. .B -d
  11. .I debug
  12. ]
  13. [
  14. .B -u
  15. .I N
  16. ]
  17. [
  18. .B -w
  19. .I workgroup
  20. ]
  21. .SH DESCRIPTION
  22. .I Aquarela
  23. provides
  24. .SM CIFS
  25. (once known as
  26. .SM SMB\c
  27. )
  28. access to Plan 9 file servers.
  29. It announces and subsequently listens on
  30. .B tcp!*!445
  31. for connections to the individual file hierarchies called ``shares'' by
  32. .SM CIFS\c .
  33. Users are authenticated with their Inferno/\c
  34. .SM POP
  35. password.
  36. Each session is managed by a process running as the authenticated user.
  37. Two persistent processes handle listening, session setup, and housekeeping.
  38. .PP
  39. An
  40. .I aquarela
  41. .SM CIFS
  42. share corresponds to a directory under
  43. .BR /n .
  44. A client request for a specific share, say,
  45. .BR share ,
  46. causes
  47. .I aquarela
  48. to serve
  49. .B /n/share.
  50. If that path is not already a mountpoint, a
  51. .IR 9fs (4)
  52. connection to the file server
  53. .B share
  54. is attempted.
  55. If connection succeeds, a file hierarchy rooted at
  56. .B /n/share
  57. is finally presented to the client.
  58. The client request fails otherwise.
  59. Requests for the protocol equivalent of
  60. .B /
  61. are satisfied with a one-level directory containing only the default share,
  62. .BR local.
  63. .PP
  64. The options are:
  65. .TP
  66. .BI -u " N
  67. Send Unicode.
  68. For
  69. .IR N ,
  70. .B 1
  71. enables,
  72. .B 0
  73. disables Unicoding of file names and metadata.
  74. There is no code page support, so
  75. .I aquarela
  76. emits
  77. .SM UTF
  78. if
  79. .I N
  80. is
  81. .BR 0 .
  82. .TP
  83. .BI -w " workgroup
  84. Set
  85. .I workgroup
  86. (or ``primary domain'') of server.
  87. Default
  88. .BR PLAN9 .
  89. .TP
  90. .B -n
  91. Enable limited
  92. .SM NETBIOS
  93. service.
  94. .I Aquarela
  95. will register with the ``master browser'' for
  96. .I workgroup
  97. and listen on
  98. .B tcp!*!139
  99. for name resolution queries.
  100. This works only in tandem with a complete
  101. .SM NETBIOS
  102. master name server, like that provided by
  103. .SM UNIX
  104. .IR nmbd (8).
  105. .SM NETBIOS
  106. is not required for
  107. .SM CIFS
  108. file service.
  109. .PD
  110. .SH EXAMPLE
  111. To start a
  112. .SM CIFS
  113. server on system
  114. .B plan9
  115. as a member of
  116. .BR WORKGROUP :
  117. .IP
  118. .EX
  119. aquarela -u 1 -w WORKGROUP &
  120. .EE
  121. .PP
  122. To make
  123. .BR plan9 's
  124. .B dump
  125. filesystem available as drive
  126. .B Y:
  127. on a Windows machine:
  128. .IP
  129. .EX
  130. net use Y: \\\\plan9.example.com\\dump
  131. .EE
  132. .SH FILES
  133. .TP
  134. .B /n/local
  135. Default
  136. .SM CIFS
  137. share
  138. .TP
  139. .B /sys/log/aquarela
  140. Log file, if it exists
  141. .PD
  142. .SH SOURCE
  143. .B /sys/src/cmd/aquarela
  144. .SH SEE ALSO
  145. .IR 9fs (4),
  146. .IR UTF (6)
  147. .SH DIAGNOSTICS
  148. Log messages are appended to
  149. .B /sys/log/aquarela
  150. if it exists. The
  151. .B -p
  152. option prints them on standard output as well.
  153. The
  154. .B -d
  155. option adds verbose output about
  156. .I debug
  157. to the log messages, where
  158. .I debug
  159. is one of:
  160. .TF any-smb-name
  161. .TP
  162. .B allcmds
  163. All
  164. .SM CIFS
  165. requests and responses.
  166. .TP
  167. .B tids
  168. Connections and disconnections per-share.
  169. .TP
  170. .B sids
  171. Creation and deletion of search ids.
  172. .TP
  173. .B fids
  174. Creation and deletion of file ids.
  175. .TP
  176. .B rap2
  177. .SM RAP
  178. calls.
  179. .TP
  180. .B find
  181. Transaction2 find commands.
  182. .TP
  183. .B query
  184. Transaction2 query commands.
  185. .TP
  186. .B sharedfiles
  187. All files opened.
  188. .TP
  189. .B poolparanoia
  190. Draconian error checking in memory allocator.
  191. .TP
  192. .B sessions
  193. Connections and disconnections on server.
  194. .TP
  195. .B rep
  196. Regular expression conversions.
  197. .TP
  198. .B locks
  199. Locking activity.
  200. .TP
  201. .I any-smb-name
  202. Debug only
  203. .B SMB_
  204. requests or
  205. .B transaction2
  206. sub-requests
  207. (e.g.,
  208. .B SMB_COM_SESSION_SETUP_ANDX
  209. or
  210. .BR SMB_TRANS2_FIND_FIRST2 )
  211. matching symbolic name
  212. .I any-smb-name.
  213. .TP
  214. .BI 0x nn
  215. Debug only messages with this hexadecimal id.
  216. .PD
  217. .SH BUGS
  218. The first login attempt from a given Windows login session often fails erroneously - try again.
  219. The server disk space reported by some clients is inaccurate.
  220. Some clients can't rename directories.
  221. Write attempts without sufficient permissions fail (correctly), but appear on client to temporarily succeed.
  222. .PP
  223. The multitude of diagnostics both in the program and in this manual page reflect the in-progress nature of the code.
  224. .PP
  225. This program should probably be named
  226. .IR cifsserver .