1 .\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd "GEOM Gate local control utility"
37 .Op Fl o Cm ro | wo | rw
38 .Op Fl s Ar sectorsize
53 .Op Fl o Cm ro | wo | rw
59 utility is a local GEOM Gate class consumer.
60 It can be used as a replacement for
64 for non GEOM-aware devices, but it was mainly created as an example
65 on how to use and how to communicate with the GEOM Gate kernel subsystem.
68 .Bl -tag -width ".Cm destroy"
72 provider related to the given regular file or device.
82 Take over a previously created provider and handle pending and future
83 requests. This is useful if the initial
86 To prevent data loss, the given path must lead to the
87 regular file or device that was used to create the provider.
91 .Bl -tag -width ".Fl s Cm ro | wo | rw"
95 provider (cancels all pending requests).
96 .It Fl o Cm ro | wo | rw
97 Specify permissions to use when opening the file or device: read-only
105 .It Fl s Ar sectorsize
109 If not specified, it is taken from the device, or set to 512 bytes for files.
111 Number of seconds to wait before an I/O request will be canceled.
117 Do not fork, run in foreground and print debug information on standard
120 Path to a regular file or device.
123 Exit status is 0 on success, or 1 if the command fails.
124 To get details about the failure,
126 should be called with the
135 to encrypt data on a floppy disk.
136 .Bd -literal -offset indent
137 ggatel create -u 5 /dev/fd0
138 gbde init /dev/ggate5
140 newfs /dev/ggate5.bde
141 mount /dev/ggate5.bde /secret
142 cp /private/foo /secret/
157 utility as well as this manual page was written by
158 .An Pawel Jakub Dawidek Aq Mt pjd@FreeBSD.org .