GGATEC(8)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’… 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 a ggated(8) daemon on the host you name and creates a ggate provider for the remote file or device you point at.
  • rescue β€” makes a brand new connection after the ggatec process has died or been killed 😭. the new connection to the ggated(8) daemon handles pending and future requests. she picks herself up, she dusts herself off.
  • destroy β€” destroys the given ggate provider. bye bestie πŸ‘‹
  • list β€” lists ggate providers. simple. clean. we love a low-effort queen.

and here's the options menu, keep scrolling πŸ’…

  • -f β€” forcibly destroy the ggate provider. and when we say forcibly, we mean it cancels all pending requests. like, all of them. no survivors.
  • -n β€” do not use the TCP_NODELAY option on TCP sockets.
  • -o option β€” specifies the permissions and options to use when opening the file or device. the choices are:
    • ro β€” read-only
    • wo β€” write-only
    • rw β€” read-write
    • direct β€” open with the O_DIRECT option on the file

default is rw, in case you were wondering πŸ“

  • -p port β€” the port to connect to on the remote host. default is 3080.
  • -q queue_size β€” how many pending I/O requests can be queued up before they start getting canceled. default is 1024. think of it as her patience meter.
  • -R rcvbuf β€” size of the receive buffer to use. default is 131072 (that's 128 KiB, for the record).
  • -S sndbuf β€” size of the send buffer to use. default is 131072 (also 128 KiB, go figure).
  • -s sectorsize β€” sector size for the ggate provider. if you don't specify it, it gets taken from the device β€” or set to 512 bytes for files.
  • -t timeout β€” the number of seconds to wait before an I/O request gets canceled. default is 0, which literally means no timeout. she'll wait forever. devoted fr.
  • -u unit β€” 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms