184 lines
4.3 KiB
Groff
184 lines
4.3 KiB
Groff
|
.\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
|
||
|
.\" All rights reserved.
|
||
|
.\"
|
||
|
.\" Redistribution and use in source and binary forms, with or without
|
||
|
.\" modification, are permitted provided that the following conditions
|
||
|
.\" are met:
|
||
|
.\" 1. Redistributions of source code must retain the above copyright
|
||
|
.\" notice, this list of conditions and the following disclaimer.
|
||
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||
|
.\" notice, this list of conditions and the following disclaimer in the
|
||
|
.\" documentation and/or other materials provided with the distribution.
|
||
|
.\"
|
||
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
|
||
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
|
||
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
|
.\" SUCH DAMAGE.
|
||
|
.\"
|
||
|
.\" $FreeBSD$
|
||
|
.\"
|
||
|
.Dd April 26, 2004
|
||
|
.Dt GGATEC 8
|
||
|
.Os
|
||
|
.Sh NAME
|
||
|
.Nm ggatec
|
||
|
.Nd "GEOM Gate network client and control utility"
|
||
|
.Sh SYNOPSIS
|
||
|
.Nm
|
||
|
.Ar create
|
||
|
.Op Fl n
|
||
|
.Op Fl v
|
||
|
.Op Fl o Ar ro | wo | rw
|
||
|
.Op Fl p Ar port
|
||
|
.Op Fl q Ar queue_size
|
||
|
.Op Fl R Ar rcvbuf
|
||
|
.Op Fl S Ar sndbuf
|
||
|
.Op Fl s Ar sectorsize
|
||
|
.Op Fl t Ar timeout
|
||
|
.Op Fl u Ar unit
|
||
|
.Ar host
|
||
|
.Ar path
|
||
|
.Nm
|
||
|
.Ar attach
|
||
|
.Op Fl n
|
||
|
.Op Fl v
|
||
|
.Op Fl o Ar ro | wo | rw
|
||
|
.Op Fl p Ar port
|
||
|
.Op Fl R Ar rcvbuf
|
||
|
.Op Fl S Ar sndbuf
|
||
|
.Fl u Ar unit
|
||
|
.Ar host
|
||
|
.Ar path
|
||
|
.Nm
|
||
|
.Ar destroy
|
||
|
.Op Fl f
|
||
|
.Fl u Ar unit
|
||
|
.Nm
|
||
|
.Ar list
|
||
|
.Op Fl v
|
||
|
.Op Fl u Ar unit
|
||
|
.Sh DESCRIPTION
|
||
|
The
|
||
|
.Nm
|
||
|
utility is a network client for GEOM Gate class.
|
||
|
It is responsible for creation of
|
||
|
.Nm ggate
|
||
|
devices and forwarding I/O requests between
|
||
|
.Nm geom_gate.ko
|
||
|
kernel module and
|
||
|
.Nm ggated
|
||
|
network daemon.
|
||
|
Available commands:
|
||
|
.Bl -tag -width ".Ar destroy"
|
||
|
.It Ar create
|
||
|
Connect to given
|
||
|
.Nm ggated
|
||
|
daemon and create a
|
||
|
.Nm ggate
|
||
|
provider related to the given remote file or device.
|
||
|
.It Ar attach
|
||
|
Attach a worker process to an existing
|
||
|
.Nm ggate
|
||
|
provider (create a new connection to the
|
||
|
.Nm ggated
|
||
|
daemon).
|
||
|
.It Ar destroy
|
||
|
Destroy the given
|
||
|
.Nm ggate
|
||
|
provider.
|
||
|
.It Ar list
|
||
|
List
|
||
|
.Nm ggate
|
||
|
providers.
|
||
|
.El
|
||
|
.Pp
|
||
|
Available options:
|
||
|
.Bl -tag -width ".Fl s Ar ro | wo | rw"
|
||
|
.It Fl f
|
||
|
Forcibly destroy
|
||
|
.Nm ggate
|
||
|
provider (cancels all pending requests).
|
||
|
.It Fl n
|
||
|
Do not use TCP_NODELAY option on TCP sockets.
|
||
|
.It Fl o Ar ro | wo | rw
|
||
|
Specify permission to use when opening the file or device: read\-only
|
||
|
.Ar ( ro ) ,
|
||
|
write\-only
|
||
|
.Ar ( wo ) ,
|
||
|
or read\-write
|
||
|
.Ar ( rw ) .
|
||
|
Default is
|
||
|
.Ar rw .
|
||
|
.It Fl p Ar port
|
||
|
Port to connect to on the remote host.
|
||
|
Default is 3080.
|
||
|
.It Fl q Ar queue_size
|
||
|
Number of pending I/O requests that can be queued before they will
|
||
|
start to be canceled.
|
||
|
Default is 1024.
|
||
|
.It Fl R Ar rcvbuf
|
||
|
Size of receive buffer to use.
|
||
|
Default is 131072 (128kB).
|
||
|
.It Fl S Ar sndbuf
|
||
|
Size of send buffer to use.
|
||
|
Default is 131072 (128kB).
|
||
|
.It Fl s Ar sectorsize
|
||
|
Sector size for
|
||
|
.Nm ggate
|
||
|
provider.
|
||
|
If not specified, it is taken from device or set to 512 bytes for files.
|
||
|
.It Fl t Ar timeout
|
||
|
Number of seconds to wait before an I/O request will be canceled.
|
||
|
0 means no timeout.
|
||
|
Default is 30.
|
||
|
.It Fl u Ar unit
|
||
|
Unit number to use.
|
||
|
.It Fl v
|
||
|
Do not fork, run in foreground and print debug informations on standard
|
||
|
output.
|
||
|
.It Ar host
|
||
|
Remote host to connect to.
|
||
|
.It Ar path
|
||
|
Path to a regular file or device.
|
||
|
.El
|
||
|
.Pp
|
||
|
.Sh EXAMPLES
|
||
|
Made use of CD\-ROM device from remote host.
|
||
|
.Pp
|
||
|
.Bd -literal -offset indent
|
||
|
server# cat /etc/gg.exports
|
||
|
client RO /dev/acd0
|
||
|
server# ggated
|
||
|
|
||
|
client# ggatec -o ro server /dev/acd0
|
||
|
ggate0
|
||
|
client# mount_cd9660 /dev/ggate0 /cdrom
|
||
|
.Ed
|
||
|
.Pp
|
||
|
.Sh DIAGNOSTICS
|
||
|
Exit status is 0 on success, or 1 if the command fails.
|
||
|
To get details about the failure,
|
||
|
.Nm
|
||
|
should be called with the
|
||
|
.Fl v
|
||
|
option.
|
||
|
.Sh SEE ALSO
|
||
|
.Xr geom 4 ,
|
||
|
.Xr ggated 8 ,
|
||
|
.Xr ggatel 8 ,
|
||
|
.Xr mount_cd9660 8
|
||
|
.Sh AUTHORS
|
||
|
The
|
||
|
.Nm
|
||
|
utility as well as this manual page was written by
|
||
|
.An -split
|
||
|
.An Pawel Jakub Dawidek Aq pjd@FreeBSD.org .
|
||
|
.An -nosplit
|