From ast@marabu.ch  Fri Apr 22 06:40:05 2005
Return-Path: <ast@marabu.ch>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id B753316A4CE; Fri, 22 Apr 2005 06:40:05 +0000 (GMT)
Received: from oneplusone.ch (oneplusone.ch [212.55.208.170])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 950E543D41; Fri, 22 Apr 2005 06:40:04 +0000 (GMT)
	(envelope-from ast@marabu.ch)
Received: from oneplusone.ch (localhost [127.0.0.1])
	by oneplusone.ch (8.13.3/8.13.3) with ESMTP id j3M6e2KB059357
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 22 Apr 2005 08:40:02 +0200 (CEST)
	(envelope-from ast@marabu.ch)
Received: (from uucp@localhost)
	by oneplusone.ch (8.13.3/8.13.3/Submit) with UUCP id j3M6e1TB059356;
	Fri, 22 Apr 2005 08:40:01 +0200 (CEST)
	(envelope-from ast@marabu.ch)
Received: from pano.marabu.ch (localhost [127.0.0.1])
	by pano.marabu.ch (8.13.3/8.13.3) with ESMTP id j3M6WgSd004071;
	Fri, 22 Apr 2005 08:32:42 +0200 (CEST)
	(envelope-from ast@pano.marabu.ch)
Received: (from ast@localhost)
	by pano.marabu.ch (8.13.3/8.13.3/Submit) id j3M6WfZN004070;
	Fri, 22 Apr 2005 08:32:41 +0200 (CEST)
	(envelope-from ast)
Message-Id: <200504220632.j3M6WfZN004070@pano.marabu.ch>
Date: Fri, 22 Apr 2005 08:32:41 +0200 (CEST)
From: Adrian Steinmann <ast@marabu.ch>
Reply-To: Adrian Steinmann <ast@marabu.ch>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sos@freebsd.org
Subject: atacontrol outputs minimal usage
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80236
>Category:       bin
>Synopsis:       [patch] atacontrol(8) outputs minimal usage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 22 06:40:12 GMT 2005
>Closed-Date:    Thu Jan 05 09:50:24 GMT 2006
>Last-Modified:  Thu Jan 05 09:50:24 GMT 2006
>Originator:     Adrian Steinmann
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
Webgroup Consulting AG
>Environment:
System: FreeBSD pano.marabu.ch 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat Apr 16 16:07:34 CEST 2005 root@pano.marabu.ch:/r/usr/obj/usr/src/sys/PANO i386


	
>Description:
	Compared to camcontrol, gmirror, gstripe, ..., atacontrol
	outputs a minimal usage. I find myself always having to
	resort to man atacontrol to jog my memory
>How-To-Repeat:
	
>Fix:

	Output a few more hints on usage(), see patch:

Index: atacontrol.c
===================================================================
RCS file: /usr/cvs/src/sbin/atacontrol/atacontrol.c,v
retrieving revision 1.31
diff -u -r1.31 atacontrol.c
--- atacontrol.c	20 May 2004 15:01:26 -0000	1.31
+++ atacontrol.c	22 Apr 2005 06:27:26 -0000
@@ -95,7 +95,22 @@
 void
 usage()
 {
-	fprintf(stderr, "usage: atacontrol <command> channel [args]\n");
+	fprintf(stderr,
+		"usage:  atacontrol <command> args\n"
+		"        atacontrol attach channel\n"
+		"        atacontrol detach channel\n"
+		"        atacontrol reinit channel\n"
+		"        atacontrol create type [interleave] disk0 ... diskN\n"
+		"        atacontrol delete raid\n"
+		"        atacontrol addspare raid disk\n"
+		"        atacontrol rebuild raid\n"
+		"        atacontrol status raid\n"
+		"        atacontrol mode channel [mastermode slavemode]\n"
+		"        atacontrol info channel\n"
+		"        atacontrol cap channel device\n"
+		"        atacontrol enclosure channel device\n"
+		"        atacontrol list\n"
+	);
 	exit(EX_USAGE);
 }
 


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Thu Jan 5 09:48:59 UTC 2006 
State-Changed-Why:  
A semilar patch has already been committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80236 
>Unformatted:
