xref: /freebsd/sbin/ggate/ggatec/ggatec.8 (revision 1b1e392aed4957a38c49599512b4f65b844a0772)
12041034cSPawel Jakub Dawidek.\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
22041034cSPawel Jakub Dawidek.\" All rights reserved.
32041034cSPawel Jakub Dawidek.\"
42041034cSPawel Jakub Dawidek.\" Redistribution and use in source and binary forms, with or without
52041034cSPawel Jakub Dawidek.\" modification, are permitted provided that the following conditions
62041034cSPawel Jakub Dawidek.\" are met:
72041034cSPawel Jakub Dawidek.\" 1. Redistributions of source code must retain the above copyright
82041034cSPawel Jakub Dawidek.\"    notice, this list of conditions and the following disclaimer.
92041034cSPawel Jakub Dawidek.\" 2. Redistributions in binary form must reproduce the above copyright
102041034cSPawel Jakub Dawidek.\"    notice, this list of conditions and the following disclaimer in the
112041034cSPawel Jakub Dawidek.\"    documentation and/or other materials provided with the distribution.
122041034cSPawel Jakub Dawidek.\"
132041034cSPawel Jakub Dawidek.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
142041034cSPawel Jakub Dawidek.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
152041034cSPawel Jakub Dawidek.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
162041034cSPawel Jakub Dawidek.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
172041034cSPawel Jakub Dawidek.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
182041034cSPawel Jakub Dawidek.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
192041034cSPawel Jakub Dawidek.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
202041034cSPawel Jakub Dawidek.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
212041034cSPawel Jakub Dawidek.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
222041034cSPawel Jakub Dawidek.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
232041034cSPawel Jakub Dawidek.\" SUCH DAMAGE.
242041034cSPawel Jakub Dawidek.\"
250fcf43f6SAllan Jude.Dd September 8, 2016
262041034cSPawel Jakub Dawidek.Dt GGATEC 8
272041034cSPawel Jakub Dawidek.Os
282041034cSPawel Jakub Dawidek.Sh NAME
292041034cSPawel Jakub Dawidek.Nm ggatec
302041034cSPawel Jakub Dawidek.Nd "GEOM Gate network client and control utility"
312041034cSPawel Jakub Dawidek.Sh SYNOPSIS
322041034cSPawel Jakub Dawidek.Nm
3356608006SRuslan Ermilov.Cm create
342041034cSPawel Jakub Dawidek.Op Fl n
352041034cSPawel Jakub Dawidek.Op Fl v
3656608006SRuslan Ermilov.Op Fl o Cm ro | wo | rw
37*1b1e392aSDavid E. Cross.Op Fl o Cm direct
382041034cSPawel Jakub Dawidek.Op Fl p Ar port
392041034cSPawel Jakub Dawidek.Op Fl q Ar queue_size
402041034cSPawel Jakub Dawidek.Op Fl R Ar rcvbuf
412041034cSPawel Jakub Dawidek.Op Fl S Ar sndbuf
422041034cSPawel Jakub Dawidek.Op Fl s Ar sectorsize
432041034cSPawel Jakub Dawidek.Op Fl t Ar timeout
442041034cSPawel Jakub Dawidek.Op Fl u Ar unit
452041034cSPawel Jakub Dawidek.Ar host
462041034cSPawel Jakub Dawidek.Ar path
472041034cSPawel Jakub Dawidek.Nm
4816a563e2SPawel Jakub Dawidek.Cm rescue
492041034cSPawel Jakub Dawidek.Op Fl n
502041034cSPawel Jakub Dawidek.Op Fl v
5156608006SRuslan Ermilov.Op Fl o Cm ro | wo | rw
52*1b1e392aSDavid E. Cross.Op Fl o Cm direct
532041034cSPawel Jakub Dawidek.Op Fl p Ar port
542041034cSPawel Jakub Dawidek.Op Fl R Ar rcvbuf
552041034cSPawel Jakub Dawidek.Op Fl S Ar sndbuf
562041034cSPawel Jakub Dawidek.Fl u Ar unit
572041034cSPawel Jakub Dawidek.Ar host
582041034cSPawel Jakub Dawidek.Ar path
592041034cSPawel Jakub Dawidek.Nm
6056608006SRuslan Ermilov.Cm destroy
612041034cSPawel Jakub Dawidek.Op Fl f
622041034cSPawel Jakub Dawidek.Fl u Ar unit
632041034cSPawel Jakub Dawidek.Nm
6456608006SRuslan Ermilov.Cm list
652041034cSPawel Jakub Dawidek.Op Fl v
662041034cSPawel Jakub Dawidek.Op Fl u Ar unit
672041034cSPawel Jakub Dawidek.Sh DESCRIPTION
682041034cSPawel Jakub DawidekThe
692041034cSPawel Jakub Dawidek.Nm
70487e821dSWarren Blockutility is a network client for the GEOM Gate class.
71487e821dSWarren BlockIt is responsible for the creation of
722041034cSPawel Jakub Dawidek.Nm ggate
73487e821dSWarren Blockdevices and forwarding I/O requests between the
74b29fdbd8SChristian Brueffer.Nm GEOM Gate
75b29fdbd8SChristian Bruefferkernel subsystem and the
7656608006SRuslan Ermilov.Xr ggated 8
772041034cSPawel Jakub Dawideknetwork daemon.
782041034cSPawel Jakub DawidekAvailable commands:
7956608006SRuslan Ermilov.Bl -tag -width ".Cm destroy"
8056608006SRuslan Ermilov.It Cm create
81487e821dSWarren BlockConnect to a
8256608006SRuslan Ermilov.Xr ggated 8
83487e821dSWarren Blockdaemon on the specified host and create a
842041034cSPawel Jakub Dawidek.Nm ggate
85487e821dSWarren Blockprovider for the specified remote file or device.
8616a563e2SPawel Jakub Dawidek.It Cm rescue
87487e821dSWarren BlockCreate a new connection after the
884e9e907dSRuslan Ermilov.Nm
89487e821dSWarren Blockprocess has died or been killed.
90487e821dSWarren BlockThe new connection to the
9156608006SRuslan Ermilov.Xr ggated 8
92487e821dSWarren Blockdaemon handles pending and future requests.
9356608006SRuslan Ermilov.It Cm destroy
942041034cSPawel Jakub DawidekDestroy the given
952041034cSPawel Jakub Dawidek.Nm ggate
962041034cSPawel Jakub Dawidekprovider.
9756608006SRuslan Ermilov.It Cm list
982041034cSPawel Jakub DawidekList
992041034cSPawel Jakub Dawidek.Nm ggate
1002041034cSPawel Jakub Dawidekproviders.
1012041034cSPawel Jakub Dawidek.El
1022041034cSPawel Jakub Dawidek.Pp
1032041034cSPawel Jakub DawidekAvailable options:
10456608006SRuslan Ermilov.Bl -tag -width ".Fl s Cm ro | wo | rw"
1052041034cSPawel Jakub Dawidek.It Fl f
1062041034cSPawel Jakub DawidekForcibly destroy
1072041034cSPawel Jakub Dawidek.Nm ggate
1082041034cSPawel Jakub Dawidekprovider (cancels all pending requests).
1092041034cSPawel Jakub Dawidek.It Fl n
11056608006SRuslan ErmilovDo not use
11156608006SRuslan Ermilov.Dv TCP_NODELAY
11256608006SRuslan Ermilovoption on TCP sockets.
113*1b1e392aSDavid E. Cross.It Fl o Ar option
114*1b1e392aSDavid E. CrossSpecify permissions and options to use when opening the file or device.
115*1b1e392aSDavid E. Cross.Bl -tag -width indent
116*1b1e392aSDavid E. Cross.It Cm ro
117*1b1e392aSDavid E. Crossread-only
118*1b1e392aSDavid E. Cross.It Cm wo
11956608006SRuslan Ermilovwrite-only
120*1b1e392aSDavid E. Cross.It Cm rw
121*1b1e392aSDavid E. Crossread-write
122*1b1e392aSDavid E. Cross.It Cm direct
123*1b1e392aSDavid E. Crossopen with
124*1b1e392aSDavid E. Cross.Dv O_DIRECT
125*1b1e392aSDavid E. Crossoption on the file
126*1b1e392aSDavid E. Cross.El
127*1b1e392aSDavid E. Cross.Pp
1282041034cSPawel Jakub DawidekDefault is
12956608006SRuslan Ermilov.Cm rw .
1302041034cSPawel Jakub Dawidek.It Fl p Ar port
1312041034cSPawel Jakub DawidekPort to connect to on the remote host.
1322041034cSPawel Jakub DawidekDefault is 3080.
1332041034cSPawel Jakub Dawidek.It Fl q Ar queue_size
1342041034cSPawel Jakub DawidekNumber of pending I/O requests that can be queued before they will
1352041034cSPawel Jakub Dawidekstart to be canceled.
1362041034cSPawel Jakub DawidekDefault is 1024.
1372041034cSPawel Jakub Dawidek.It Fl R Ar rcvbuf
1382041034cSPawel Jakub DawidekSize of receive buffer to use.
1392041034cSPawel Jakub DawidekDefault is 131072 (128kB).
1402041034cSPawel Jakub Dawidek.It Fl S Ar sndbuf
1412041034cSPawel Jakub DawidekSize of send buffer to use.
1422041034cSPawel Jakub DawidekDefault is 131072 (128kB).
1432041034cSPawel Jakub Dawidek.It Fl s Ar sectorsize
1442041034cSPawel Jakub DawidekSector size for
1452041034cSPawel Jakub Dawidek.Nm ggate
1462041034cSPawel Jakub Dawidekprovider.
147b29fdbd8SChristian BruefferIf not specified, it is taken from the device, or set to 512 bytes for files.
1482041034cSPawel Jakub Dawidek.It Fl t Ar timeout
1492041034cSPawel Jakub DawidekNumber of seconds to wait before an I/O request will be canceled.
150487e821dSWarren BlockDefault is 0, which means no timeout.
1512041034cSPawel Jakub Dawidek.It Fl u Ar unit
1522041034cSPawel Jakub DawidekUnit number to use.
1532041034cSPawel Jakub Dawidek.It Fl v
154487e821dSWarren BlockDo not fork, run in foreground and print debug information on standard
1552041034cSPawel Jakub Dawidekoutput.
1562041034cSPawel Jakub Dawidek.It Ar host
1572041034cSPawel Jakub DawidekRemote host to connect to.
1582041034cSPawel Jakub Dawidek.It Ar path
1592041034cSPawel Jakub DawidekPath to a regular file or device.
1602041034cSPawel Jakub Dawidek.El
1616087df9eSRuslan Ermilov.Sh EXIT STATUS
1626087df9eSRuslan ErmilovExit status is 0 on success, or 1 if the command fails.
1636087df9eSRuslan ErmilovTo get details about the failure,
1646087df9eSRuslan Ermilov.Nm
1656087df9eSRuslan Ermilovshould be called with the
1666087df9eSRuslan Ermilov.Fl v
1676087df9eSRuslan Ermilovoption.
1682041034cSPawel Jakub Dawidek.Sh EXAMPLES
169487e821dSWarren BlockUse a CD-ROM device on a remote host.
1702041034cSPawel Jakub Dawidek.Bd -literal -offset indent
1712041034cSPawel Jakub Dawidekserver# cat /etc/gg.exports
172c650c2f3SAlex Kozlovclient RO /dev/cd0
173*1b1e392aSDavid E. Crossclient RW /tmp/image
1742041034cSPawel Jakub Dawidekserver# ggated
1758266d476SRuslan Ermilov
176c650c2f3SAlex Kozlovclient# ggatec create -o ro server /dev/cd0
1772041034cSPawel Jakub Dawidekggate0
1782041034cSPawel Jakub Dawidekclient# mount_cd9660 /dev/ggate0 /cdrom
179*1b1e392aSDavid E. Crossclient# ggatec create -o rw -o direct server /tmp/image
180*1b1e392aSDavid E. Crossggate1
1812041034cSPawel Jakub Dawidek.Ed
1822041034cSPawel Jakub Dawidek.Sh SEE ALSO
1832041034cSPawel Jakub Dawidek.Xr geom 4 ,
1842041034cSPawel Jakub Dawidek.Xr ggated 8 ,
1852041034cSPawel Jakub Dawidek.Xr ggatel 8 ,
1862041034cSPawel Jakub Dawidek.Xr mount_cd9660 8
1870fcf43f6SAllan Jude.Sh HISTORY
1880fcf43f6SAllan JudeThe
1890fcf43f6SAllan Jude.Nm
1900fcf43f6SAllan Judeutility appeared in
1910fcf43f6SAllan Jude.Fx 5.3 .
1922041034cSPawel Jakub Dawidek.Sh AUTHORS
1932041034cSPawel Jakub DawidekThe
1942041034cSPawel Jakub Dawidek.Nm
1952041034cSPawel Jakub Dawidekutility as well as this manual page was written by
196bd0891ceSBaptiste Daroussin.An Pawel Jakub Dawidek Aq Mt pjd@FreeBSD.org .
197