GGATEC(8)
π GGATEC(8) β like, the GEOM Gate network client, bestie
okay so this is ggatec, from section 8 of the system manager's manual, and honestly? she's iconic. buckle up π
β¨ NAME β¨
ggatec β the GEOM Gate network client and control utility. yes. both. she multitasks π
πΈ SYNOPSIS πΈ
ggatec create [-n] [-v] [-o ro | wo | rw] [-o direct] [-p port]
[-q queue_size] [-R rcvbuf] [-S sndbuf] [-s sectorsize]
[-t timeout] [-u unit] host path
ggatec rescue [-n] [-v] [-o ro | wo | rw] [-o direct] [-p port]
[-R rcvbuf] [-S sndbuf] -u unit host path
ggatec destroy [-f] -u unit
ggatec list [-v] [-u unit]
that's a lot of brackets, i know. breathe. it's giving "options menu at a boba shop" π§
π¦ DESCRIPTION π¦
so ggatec is the network client for the GEOM Gate class. her whole job? creating ggate devices and forwarding I/O requests back and forth between the GEOM Gate kernel subsystem and the ggated(8) network daemon. she's the middleman. the hype woman. the messenger π«Ά
here are the commands you can actually run, no cap:
createβ connects to aggated(8)daemon on the host you name and creates aggateprovider for the remote file or device you point at.rescueβ makes a brand new connection after theggatecprocess has died or been killed π. the new connection to theggated(8)daemon handles pending and future requests. she picks herself up, she dusts herself off.destroyβ destroys the givenggateprovider. bye bestie πlistβ listsggateproviders. simple. clean. we love a low-effort queen.
and here's the options menu, keep scrolling π
-fβ forcibly destroy theggateprovider. and when we say forcibly, we mean it cancels all pending requests. like, all of them. no survivors.-nβ do not use theTCP_NODELAYoption on TCP sockets.-ooption β specifies the permissions and options to use when opening the file or device. the choices are:roβ read-onlywoβ write-onlyrwβ read-writedirectβ open with theO_DIRECToption on the file
default is rw, in case you were wondering π
-pport β the port to connect to on the remote host. default is3080.-qqueue_size β how many pending I/O requests can be queued up before they start getting canceled. default is1024. think of it as her patience meter.-Rrcvbuf β size of the receive buffer to use. default is131072(that's 128 KiB, for the record).-Ssndbuf β size of the send buffer to use. default is131072(also 128 KiB, go figure).-ssectorsize β sector size for theggateprovider. if you don't specify it, it gets taken from the device β or set to512bytes for files.-ttimeout β the number of seconds to wait before an I/O request gets canceled. default is0, which literally means no timeout. she'll wait forever. devoted fr.-uunit β the unit number to use.-vβ do not fork; run in the foreground and print debug information on standard output. main character energy, no background hiding π- host β the remote host to connect to.
- path β the path to a regular file or device.
π₯ EXIT STATUS π₯
exit status is 0 on success, or 1 if the command fails. and if you want the details on why it failed? call ggatec with the -v option. she'll spill everything π
π EXAMPLES π
okay this one's fun β let's use a CD-ROM device on a remote host, shall we? π
server# cat /etc/gg.exports
client RO /dev/cd0
client RW /tmp/image
server# ggated
client# ggatec create -o ro server /dev/cd0
ggate0
client# mount_cd9660 /dev/ggate0 /cdrom
client# ggatec create -o rw -o direct server /tmp/image
ggate1
look at that. ggate0, then ggate1. she's numbering them like it's nothing β¨
π SEE ALSO π
geom(4), ggated(8), ggatel(8), mount_cd9660(8) β go read those too, iykyk π
π HISTORY π
the ggatec utility appeared in FreeBSD 5.3. a legend from the jump.
π§ AUTHORS π§
the ggatec utility, as well as this manual page, was written by Pawel Jakub Dawidek <pjd@FreeBSD.org>. thank you king π
and that's the whole page, bestie π this Debian build of the September 8, 2016 page is officially a wrap β GGATEC(8), slaying since forever. mwah π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms