diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-06-20 19:16:38 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2004-06-20 19:16:38 +0000 |
commit | 0d807c4af7d8a3050333c40357fd45859bfcd8e9 (patch) | |
tree | ef5f1abed2f7dc1c87866d76688582329adf89e9 /usr.sbin | |
parent | 72951f25abbdf39776b532d4017546c7077ff21b (diff) |
mention new -l option, some nitpicks
mdoc tutoring and ok jfb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/vnconfig/vnconfig.8 | 15 | ||||
-rw-r--r-- | usr.sbin/vnconfig/vnconfig.c | 5 |
2 files changed, 15 insertions, 5 deletions
diff --git a/usr.sbin/vnconfig/vnconfig.8 b/usr.sbin/vnconfig/vnconfig.8 index ad81e98071a..7cd0af4d425 100644 --- a/usr.sbin/vnconfig/vnconfig.8 +++ b/usr.sbin/vnconfig/vnconfig.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vnconfig.8,v 1.19 2003/06/12 12:59:54 jmc Exp $ +.\" $OpenBSD: vnconfig.8,v 1.20 2004/06/20 19:16:37 pedro Exp $ .\" .\" Copyright (c) 1993 University of Utah. .\" Copyright (c) 1980, 1989, 1991, 1993 @@ -41,14 +41,18 @@ .Nm vnconfig .Nd "configure vnode disks for file swapping or pseudo file systems" .Sh SYNOPSIS -.Nm vnconfig +.Nm .Op Fl c .Op Fl vk .Ar rawdev .Ar regular_file -.Nm vnconfig Fl u +.Nm +.Fl u .Op Fl v .Ar rawdev +.Nm +.Fl l +.Op Ar rawdev .Sh DESCRIPTION The .Nm @@ -90,6 +94,11 @@ Associate an encryption key with the device. All data will be encrypted before it is written to the disk. Encryption only works with .Pa svnd . +.It Fl l +List the vnd devices and indicate which ones are in use. +If a specific +.Ar rawdev +is given, then only that one will be described. .It Fl u Unconfigures the device. .It Fl v diff --git a/usr.sbin/vnconfig/vnconfig.c b/usr.sbin/vnconfig/vnconfig.c index 6fada1a6645..0c3818228d8 100644 --- a/usr.sbin/vnconfig/vnconfig.c +++ b/usr.sbin/vnconfig/vnconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnconfig.c,v 1.13 2004/06/20 18:04:54 pedro Exp $ */ +/* $OpenBSD: vnconfig.c,v 1.14 2004/06/20 19:16:37 pedro Exp $ */ /* * Copyright (c) 1993 University of Utah. * Copyright (c) 1990, 1993 @@ -208,6 +208,7 @@ usage(void) (void)fprintf(stderr, "usage: %s [-c] [-vk] rawdev regular-file\n" - " %s -u [-v] rawdev\n", __progname, __progname); + " %s -u [-v] rawdev\n" + " %s -l [rawdev]\n", __progname, __progname, __progname); exit(1); } |