From owner-freebsd-arch@FreeBSD.ORG Tue Nov 4 18:28:16 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7550916A4CE for ; Tue, 4 Nov 2003 18:28:16 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B60343FB1 for ; Tue, 4 Nov 2003 18:28:15 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.12.10/8.12.9) with ESMTP id hA52SDaE021741; Tue, 4 Nov 2003 21:28:13 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200311041737.20467.wes@softweyr.com> References: <200311041737.20467.wes@softweyr.com> Date: Tue, 4 Nov 2003 21:28:12 -0500 To: Wes Peters , arch@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) Subject: Re: newfs and mount vs. half-baked disks X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 02:28:16 -0000 At 5:37 PM -0800 11/4/03, Wes Peters wrote: >Should extra debugging code like this be committed? Code like >this would make it much easier to wrap a regression test around >newfs, at the cost of introducing non-operational command line >arguments into utilities. If anyone has suggestions on how >to do this, please share. For what it's worth, I recently added some non-operational command line arguments into newsyslog. In my case I decided to add only *1* new argument, and then all the special debugging commands are specified as strings to that argument. This means that only one option-letter is used up, and it also makes it much much less likely that someone is going to specify the special debugging/regression options by accident. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu