ggatel8
Geom gate local control utility
Usage
ggatel create
[-v]
[-o
-option] ...
[-s
sectorsize]
[-t
timeout]
[-u
unit]
path
ggatel destroy
[-f]
-u
unit
ggatel list
[-v]
[-u
unit]
ggatel rescue
[-v]
[-o
-option] ...
-u
unit
path
Overview
The ggatel utility is a local GEOM Gate class consumer. It can be used as a replacement for md(4) devices or as a “GEOMificator” for non GEOM-aware devices, but it was mainly created as an example on how to use and how to communicate with the GEOM Gate kernel subsystem.
Available commands:
create-
Create a
ggateprovider related to the given regular file or device. destroy-
Destroy the given
ggateprovider. list-
List
ggateproviders. rescue-
Take over a previously created provider and handle pending and future requests. This is useful if the initial
ggatelprocess died. To prevent data loss, the given path must lead to the regular file or device that was used to create the provider.
Available options:
-
-f -
Forcibly destroy
ggateprovider (cancels all pending requests). -
-o option -
Specify permissions and options to use when opening the file or device.
ro-
read-only
wo-
write-only
rw-
read-write
direct-
open with O_DIRECT option on the file
Default is
rw.
-
-s sectorsize -
Sector size for
ggateprovider. If not specified, it is taken from the device, or set to 512 bytes for files. -
-t timeout -
Number of seconds to wait before an I/O request will be canceled. 0 means no timeout. Default is 30.
-
-u unit -
Unit number to use.
-
-v -
Do not fork, run in foreground and print debug information on standard output.
- path
-
Path to a regular file or device.
Exit status
Exit status is 0 on success, or 1 if the command fails. To get details about the failure, ggatel should be called with the -v option.
Releases
52 releases since FreeBSD 5.3-RELEASE; the text changed 34 times.
- 5.3–5.5
- 6.0–6.3
- 6.4
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
- 9.0
- 9.1
- 9.2
- 9.3
- 10.0
- 10.1
- 10.2
- 10.3
- 10.4
- 11.0
- 11.1
- 11.2
- 11.3
- 11.4
- 12.0
- 12.1
- 12.2
- 12.3
- 12.4
- 13.0–13.2
- 13.3–14.5
- 15.0–16.0
-o since FreeBSD 15.0-RELEASE.
-q until FreeBSD 8.4-RELEASE.