geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

184 lines
4.3 KiB

  1. .\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\"
  13. .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
  14. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  16. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
  17. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. .\" SUCH DAMAGE.
  24. .\"
  25. .\" $FreeBSD$
  26. .\"
  27. .Dd April 26, 2004
  28. .Dt GGATEC 8
  29. .Os
  30. .Sh NAME
  31. .Nm ggatec
  32. .Nd "GEOM Gate network client and control utility"
  33. .Sh SYNOPSIS
  34. .Nm
  35. .Ar create
  36. .Op Fl n
  37. .Op Fl v
  38. .Op Fl o Ar ro | wo | rw
  39. .Op Fl p Ar port
  40. .Op Fl q Ar queue_size
  41. .Op Fl R Ar rcvbuf
  42. .Op Fl S Ar sndbuf
  43. .Op Fl s Ar sectorsize
  44. .Op Fl t Ar timeout
  45. .Op Fl u Ar unit
  46. .Ar host
  47. .Ar path
  48. .Nm
  49. .Ar attach
  50. .Op Fl n
  51. .Op Fl v
  52. .Op Fl o Ar ro | wo | rw
  53. .Op Fl p Ar port
  54. .Op Fl R Ar rcvbuf
  55. .Op Fl S Ar sndbuf
  56. .Fl u Ar unit
  57. .Ar host
  58. .Ar path
  59. .Nm
  60. .Ar destroy
  61. .Op Fl f
  62. .Fl u Ar unit
  63. .Nm
  64. .Ar list
  65. .Op Fl v
  66. .Op Fl u Ar unit
  67. .Sh DESCRIPTION
  68. The
  69. .Nm
  70. utility is a network client for GEOM Gate class.
  71. It is responsible for creation of
  72. .Nm ggate
  73. devices and forwarding I/O requests between
  74. .Nm geom_gate.ko
  75. kernel module and
  76. .Nm ggated
  77. network daemon.
  78. Available commands:
  79. .Bl -tag -width ".Ar destroy"
  80. .It Ar create
  81. Connect to given
  82. .Nm ggated
  83. daemon and create a
  84. .Nm ggate
  85. provider related to the given remote file or device.
  86. .It Ar attach
  87. Attach a worker process to an existing
  88. .Nm ggate
  89. provider (create a new connection to the
  90. .Nm ggated
  91. daemon).
  92. .It Ar destroy
  93. Destroy the given
  94. .Nm ggate
  95. provider.
  96. .It Ar list
  97. List
  98. .Nm ggate
  99. providers.
  100. .El
  101. .Pp
  102. Available options:
  103. .Bl -tag -width ".Fl s Ar ro | wo | rw"
  104. .It Fl f
  105. Forcibly destroy
  106. .Nm ggate
  107. provider (cancels all pending requests).
  108. .It Fl n
  109. Do not use TCP_NODELAY option on TCP sockets.
  110. .It Fl o Ar ro | wo | rw
  111. Specify permission to use when opening the file or device: read\-only
  112. .Ar ( ro ) ,
  113. write\-only
  114. .Ar ( wo ) ,
  115. or read\-write
  116. .Ar ( rw ) .
  117. Default is
  118. .Ar rw .
  119. .It Fl p Ar port
  120. Port to connect to on the remote host.
  121. Default is 3080.
  122. .It Fl q Ar queue_size
  123. Number of pending I/O requests that can be queued before they will
  124. start to be canceled.
  125. Default is 1024.
  126. .It Fl R Ar rcvbuf
  127. Size of receive buffer to use.
  128. Default is 131072 (128kB).
  129. .It Fl S Ar sndbuf
  130. Size of send buffer to use.
  131. Default is 131072 (128kB).
  132. .It Fl s Ar sectorsize
  133. Sector size for
  134. .Nm ggate
  135. provider.
  136. If not specified, it is taken from device or set to 512 bytes for files.
  137. .It Fl t Ar timeout
  138. Number of seconds to wait before an I/O request will be canceled.
  139. 0 means no timeout.
  140. Default is 30.
  141. .It Fl u Ar unit
  142. Unit number to use.
  143. .It Fl v
  144. Do not fork, run in foreground and print debug informations on standard
  145. output.
  146. .It Ar host
  147. Remote host to connect to.
  148. .It Ar path
  149. Path to a regular file or device.
  150. .El
  151. .Pp
  152. .Sh EXAMPLES
  153. Made use of CD\-ROM device from remote host.
  154. .Pp
  155. .Bd -literal -offset indent
  156. server# cat /etc/gg.exports
  157. client RO /dev/acd0
  158. server# ggated
  159. client# ggatec create -o ro server /dev/acd0
  160. ggate0
  161. client# mount_cd9660 /dev/ggate0 /cdrom
  162. .Ed
  163. .Pp
  164. .Sh DIAGNOSTICS
  165. Exit status is 0 on success, or 1 if the command fails.
  166. To get details about the failure,
  167. .Nm
  168. should be called with the
  169. .Fl v
  170. option.
  171. .Sh SEE ALSO
  172. .Xr geom 4 ,
  173. .Xr ggated 8 ,
  174. .Xr ggatel 8 ,
  175. .Xr mount_cd9660 8
  176. .Sh AUTHORS
  177. The
  178. .Nm
  179. utility as well as this manual page was written by
  180. .An -split
  181. .An Pawel Jakub Dawidek Aq pjd@FreeBSD.org .
  182. .An -nosplit