s/dettach/detach/g etc.

Pointed out by:	chris
This commit is contained in:
Poul-Henning Kamp 2002-10-20 19:08:56 +00:00
parent 14ac6812b9
commit 930f6f2f6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105541
2 changed files with 12 additions and 12 deletions

View File

@ -47,7 +47,7 @@ attach
.Op Fl l Ar lockfile .Op Fl l Ar lockfile
.Op Fl p Ar pass-phrase .Op Fl p Ar pass-phrase
.Nm .Nm
dettach detach
.Ar destination .Ar destination
.Nm .Nm
init init
@ -81,7 +81,7 @@ The interaction between the
program and the kernel part is not a published interface. program and the kernel part is not a published interface.
.Pp .Pp
The operational aspect consists of two subcommands, one to open and attach The operational aspect consists of two subcommands, one to open and attach
a device and one to close and dettach a device and one to close and detach
a device to the in-kernel cryptographic gbde module. a device to the in-kernel cryptographic gbde module.
.Pp .Pp
The management part allows initialization of the master key and lock sectors The management part allows initialization of the master key and lock sectors
@ -131,10 +131,10 @@ To initialize a device, using default parameters:
To attach an encrypted device: To attach an encrypted device:
.Dl # gbde attach ad0s1f -l /etc/ad0s1f.lock .Dl # gbde attach ad0s1f -l /etc/ad0s1f.lock
.Pp .Pp
To dettach an encrypted device: To detach an encrypted device:
.Dl # gbde dettach ad0s1f .Dl # gbde detach ad0s1f
.Pp .Pp
To initialize the second key using a dettached lockfile and a trivial To initialize the second key using a detached lockfile and a trivial
pass-phrase: pass-phrase:
.Dl # gbde setkey ad0s1f -n 2 -P foo -L key2.lockfile .Dl # gbde setkey ad0s1f -n 2 -P foo -L key2.lockfile
.Pp .Pp

View File

@ -67,7 +67,7 @@ usage(const char *reason)
fprintf(stderr, "Usage error: %s", reason); fprintf(stderr, "Usage error: %s", reason);
fprintf(stderr, "Usage:\n"); fprintf(stderr, "Usage:\n");
fprintf(stderr, "\t%s attach dest -l filename\n", p); fprintf(stderr, "\t%s attach dest -l filename\n", p);
fprintf(stderr, "\t%s dettach dest\n", p); fprintf(stderr, "\t%s detach dest\n", p);
fprintf(stderr, "\t%s init dest [-i] [-f filename] -l filename\n", p); fprintf(stderr, "\t%s init dest [-i] [-f filename] -l filename\n", p);
fprintf(stderr, "\t%s setkey dest [-n key] -l filename\n", p); fprintf(stderr, "\t%s setkey dest [-n key] -l filename\n", p);
fprintf(stderr, "\t%s destroy dest [-n key] -l filename\n", p); fprintf(stderr, "\t%s destroy dest [-n key] -l filename\n", p);
@ -219,7 +219,7 @@ cmd_attach(const struct g_bde_softc *sc, const char *dest, const char *lfile)
} }
static void static void
cmd_dettach(const char *dest) cmd_detach(const char *dest)
{ {
int i, gfd; int i, gfd;
struct geomconfiggeom gcg; struct geomconfiggeom gcg;
@ -601,7 +601,7 @@ cmd_init(struct g_bde_key *gl, int dfd, const char *f_opt, int i_opt, const char
static enum action { static enum action {
ACT_HUH, ACT_HUH,
ACT_ATTACH, ACT_DETTACH, ACT_ATTACH, ACT_DETACH,
ACT_INIT, ACT_SETKEY, ACT_DESTROY, ACT_NUKE ACT_INIT, ACT_SETKEY, ACT_DESTROY, ACT_NUKE
} action; } action;
@ -626,8 +626,8 @@ main(int argc, char **argv)
if (!strcmp(argv[1], "attach")) { if (!strcmp(argv[1], "attach")) {
action = ACT_ATTACH; action = ACT_ATTACH;
opts = "l:p:"; opts = "l:p:";
} else if (!strcmp(argv[1], "dettach")) { } else if (!strcmp(argv[1], "detach")) {
action = ACT_DETTACH; action = ACT_DETACH;
opts = ""; opts = "";
} else if (!strcmp(argv[1], "init")) { } else if (!strcmp(argv[1], "init")) {
action = ACT_INIT; action = ACT_INIT;
@ -707,8 +707,8 @@ main(int argc, char **argv)
setup_passphrase(&sc, 0, p_opt); setup_passphrase(&sc, 0, p_opt);
cmd_attach(&sc, dest, l_opt); cmd_attach(&sc, dest, l_opt);
break; break;
case ACT_DETTACH: case ACT_DETACH:
cmd_dettach(dest); cmd_detach(dest);
break; break;
case ACT_INIT: case ACT_INIT:
cmd_init(gl, dfd, f_opt, i_opt, L_opt); cmd_init(gl, dfd, f_opt, i_opt, L_opt);