bin/90353: [patch] Incorrect usage() in atacontrol

Gavin Atkinson gavin.atkinson at ury.york.ac.uk
Tue Dec 13 13:00:17 PST 2005


>Number:         90353
>Category:       bin
>Synopsis:       [patch] Incorrect usage() in atacontrol
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 13 21:00:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Gavin Atkinson
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 945testbox.york.ac.uk 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Dec 12 18:04:02 GMT 2005 root at 945testbox.york.ac.uk:/usr/obj/usr/src/sys/GENERIC i386

>Description:
	The help page printed out by atacontrol when arguments are
incorrect is wrong in the definition of the "delete" command - it
is used to delete arrays not channels, and therefore takes an array
name as its argument rather than a channel.  The man page is correct.

>How-To-Repeat:
	Try to delete a channel, or an array.

>Fix:

--- atacontrol-delarray.diff begins here ---
Index: src/sbin/atacontrol/atacontrol.c
===================================================================
RCS file: /usr/cvs/src/sbin/atacontrol/atacontrol.c,v
retrieving revision 1.37
diff -p -u -r1.37 atacontrol.c
--- src/sbin/atacontrol/atacontrol.c	5 Aug 2005 13:08:02 -0000	1.37
+++ src/sbin/atacontrol/atacontrol.c	13 Dec 2005 20:50:23 -0000
@@ -103,7 +103,7 @@ usage()
 		"        atacontrol detach channel\n"
 		"        atacontrol reinit channel\n"
 		"        atacontrol create type [interleave] disk0 ... diskN\n"
-		"        atacontrol delete channel\n"
+		"        atacontrol delete array\n"
 		"        atacontrol addspare array disk\n"
 		"        atacontrol rebuild array\n"
 		"        atacontrol status array\n"
--- atacontrol-delarray.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list