summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2003-06-12 05:55:59 +0000
committergrog <grog@FreeBSD.org>2003-06-12 05:55:59 +0000
commit8a674eedf4410c1bb361ba79bc0de74cc97a43bf (patch)
tree227b852d07094220db893b93f96a43f5335e7ae4 /sbin
parent4af2cae35c4a0ac006030765fd0ce462cc27dd60 (diff)
downloadFreeBSD-src-8a674eedf4410c1bb361ba79bc0de74cc97a43bf.zip
FreeBSD-src-8a674eedf4410c1bb361ba79bc0de74cc97a43bf.tar.gz
Remove label command. It has been deprecated since December 1998, and
recent changes broke it altogether. Prompted by: phk
Diffstat (limited to 'sbin')
-rw-r--r--sbin/vinum/commands.c38
1 files changed, 1 insertions, 37 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index d8c9eb2..1fd1743 100644
--- a/sbin/vinum/commands.c
+++ b/sbin/vinum/commands.c
@@ -36,7 +36,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: commands.c,v 1.24 2003/05/07 03:17:43 grog Exp grog $
+ * $Id: commands.c,v 1.52 2003/05/08 00:33:57 grog Exp $
* $FreeBSD$
*/
@@ -677,42 +677,6 @@ vinum_stop(int argc, char *argv[], char *arg0[])
}
void
-vinum_label(int argc, char *argv[], char *arg0[])
-{
- int object;
- struct _ioctl_reply reply;
- int *message = (int *) &reply;
-
- if (argc == 0) /* start everything */
- fprintf(stderr, "label: please specify one or more volume names\n");
- else { /* start specified objects */
- int i;
- enum objecttype type;
-
- for (i = 0; i < argc; i++) {
- object = find_object(argv[i], &type); /* look for it */
- if (type == invalid_object)
- fprintf(stderr, "Can't find object: %s\n", argv[i]);
- else if (type != volume_object) /* it exists, but it isn't a volume */
- fprintf(stderr, "%s is not a volume\n", argv[i]);
- else {
- message[0] = object; /* pass object number */
- ioctl(superdev, VINUM_LABEL, message);
- if (reply.error != 0)
- fprintf(stderr,
- "Can't label %s: %s (%d)\n",
- argv[i],
- reply.msg[0] ? reply.msg : strerror(reply.error),
- reply.error);
- if (Verbose)
- vinum_li(object, type);
- }
- }
- }
- checkupdates(); /* not updating? */
-}
-
-void
reset_volume_stats(int volno, int recurse)
{
struct vinum_ioctl_msg msg;
OpenPOWER on IntegriCloud