From owner-freebsd-scsi Mon Jul 19 9:12:31 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 81C04151D5; Mon, 19 Jul 1999 09:12:29 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id KAA70954; Mon, 19 Jul 1999 10:12:21 -0600 (MDT) (envelope-from ken) Message-Id: <199907191612.KAA70954@panzer.kdm.org> Subject: Re: Question In-Reply-To: <199907190811.BAA71585@silvia.hip.berkeley.edu> from Satoshi - Ports Wraith - Asami at "Jul 19, 1999 01:11:39 am" To: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Date: Mon, 19 Jul 1999 10:12:21 -0600 (MDT) Cc: nisha@cs.berkeley.edu, scsi@FreeBSD.ORG From: "Kenneth D. Merry" X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Satoshi - Ports Wraith - Asami wrote... > * From: "Kenneth D. Merry" > > Oops, I should have read the manpage more carefully. But still... > > * > camcontrol modepage -e -m 8 /dev/pass0 > > * Otherwise, camcontrol will probably reject /dev/pass0 as garbage and > * default to editing mode page 8 on da0. > > Shouldn't it exit with an error instead of just silently ignoring it? That's harder than it sounds, due to the way arguments are parsed in camcontrol. In any case, assuming standard getopt behavior, why should camcontrol even detect the argument at the end? Once getopt sees something that doesn't start with a '-' and isn't an expected argument, it stops parsing arguments. I doubt most programs continue going down the command line to check for extraneous garbage arguments. The right solution is probably to elimniate da0 as the default device, and require the user to specify a device to act on. I've been planning on doing that for a while, but only in -current. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message