From 8a674eedf4410c1bb361ba79bc0de74cc97a43bf Mon Sep 17 00:00:00 2001 From: grog Date: Thu, 12 Jun 2003 05:55:59 +0000 Subject: Remove label command. It has been deprecated since December 1998, and recent changes broke it altogether. Prompted by: phk --- sbin/vinum/commands.c | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) (limited to 'sbin/vinum/commands.c') 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; -- cgit v1.1