geom_gate userland utility improvements
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

180 rader
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. .Cm create
  36. .Op Fl n
  37. .Op Fl v
  38. .Op Fl o Cm 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. .Cm rescue
  50. .Op Fl n
  51. .Op Fl v
  52. .Op Fl o Cm 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. .Cm destroy
  61. .Op Fl f
  62. .Fl u Ar unit
  63. .Nm
  64. .Cm 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. .Xr ggated 8
  77. network daemon.
  78. Available commands:
  79. .Bl -tag -width ".Cm destroy"
  80. .It Cm create
  81. Connect to given
  82. .Xr ggated 8
  83. daemon and create a
  84. .Nm ggate
  85. provider related to the given remote file or device.
  86. .It Cm rescue
  87. If ggatec process died/has been killed, you can save situation with this
  88. command, which creates new connection to the
  89. .Xr ggated 8
  90. daemon and will handle pending and future requests.
  91. .It Cm destroy
  92. Destroy the given
  93. .Nm ggate
  94. provider.
  95. .It Cm list
  96. List
  97. .Nm ggate
  98. providers.
  99. .El
  100. .Pp
  101. Available options:
  102. .Bl -tag -width ".Fl s Cm ro | wo | rw"
  103. .It Fl f
  104. Forcibly destroy
  105. .Nm ggate
  106. provider (cancels all pending requests).
  107. .It Fl n
  108. Do not use
  109. .Dv TCP_NODELAY
  110. option on TCP sockets.
  111. .It Fl o Cm ro | wo | rw
  112. Specify permission to use when opening the file or device: read-only
  113. .Pq Cm ro ,
  114. write-only
  115. .Pq Cm wo ,
  116. or read-write
  117. .Pq Cm rw .
  118. Default is
  119. .Cm rw .
  120. .It Fl p Ar port
  121. Port to connect to on the remote host.
  122. Default is 3080.
  123. .It Fl q Ar queue_size
  124. Number of pending I/O requests that can be queued before they will
  125. start to be canceled.
  126. Default is 1024.
  127. .It Fl R Ar rcvbuf
  128. Size of receive buffer to use.
  129. Default is 131072 (128kB).
  130. .It Fl S Ar sndbuf
  131. Size of send buffer to use.
  132. Default is 131072 (128kB).
  133. .It Fl s Ar sectorsize
  134. Sector size for
  135. .Nm ggate
  136. provider.
  137. If not specified, it is taken from device, or set to 512 bytes for files.
  138. .It Fl t Ar timeout
  139. Number of seconds to wait before an I/O request will be canceled.
  140. 0 means no timeout.
  141. Default is 0.
  142. .It Fl u Ar unit
  143. Unit number to use.
  144. .It Fl v
  145. Do not fork, run in foreground and print debug informations on standard
  146. output.
  147. .It Ar host
  148. Remote host to connect to.
  149. .It Ar path
  150. Path to a regular file or device.
  151. .El
  152. .Sh EXIT STATUS
  153. Exit status is 0 on success, or 1 if the command fails.
  154. To get details about the failure,
  155. .Nm
  156. should be called with the
  157. .Fl v
  158. option.
  159. .Sh EXAMPLES
  160. Made use of CD-ROM device from remote host.
  161. .Bd -literal -offset indent
  162. server# cat /etc/gg.exports
  163. client RO /dev/acd0
  164. server# ggated
  165. client# ggatec create -o ro server /dev/acd0
  166. ggate0
  167. client# mount_cd9660 /dev/ggate0 /cdrom
  168. .Ed
  169. .Sh SEE ALSO
  170. .Xr geom 4 ,
  171. .Xr ggated 8 ,
  172. .Xr ggatel 8 ,
  173. .Xr mount_cd9660 8
  174. .Sh AUTHORS
  175. The
  176. .Nm
  177. utility as well as this manual page was written by
  178. .An Pawel Jakub Dawidek Aq pjd@FreeBSD.org .