Date: Fri, 22 Apr 2005 08:32:41 +0200 (CEST) From: Adrian Steinmann <ast@marabu.ch> To: FreeBSD-gnats-submit@FreeBSD.org Cc: sos@FreeBSD.org Subject: i386/80236: atacontrol outputs minimal usage Message-ID: <200504220632.j3M6WfZN004070@pano.marabu.ch> Resent-Message-ID: <200504220640.j3M6eCUj064774@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80236 >Category: i386 >Synopsis: atacontrol outputs minimal usage >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 22 06:40:12 GMT 2005 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504220632.j3M6WfZN004070>