From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 15 09:12:43 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28464106566B for ; Tue, 15 Feb 2011 09:12:43 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id AADB78FC1C for ; Tue, 15 Feb 2011 09:12:42 +0000 (UTC) Received: by fxm16 with SMTP id 16so6281226fxm.13 for ; Tue, 15 Feb 2011 01:12:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:x-mailer:mime-version:content-type :content-transfer-encoding; bh=5gsJNA+7wz4wMJpGgdC0TPT4qrFKnmSWNi2k44FwRLw=; b=rcDy/97W6L2Rq15FWuB1BEtrTvrLdAPVrqVBQE4VaXoY7RMHK44m1ZvmKeT5PcBf6g YUGR/UljvKiMLThpgM1qk5yBgJ9fMdvFJ+I1Eu15oEy9MFbl+Y7hANdGMcSGdHMvMn88 DvLDJzU97A7yC7KpkuCKO6TofGcCq1cWoi/Xg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=wdB1gsqCWZOfbZocNvfFnm6ORgEoDo1Aon0kuJQzpZOzi+1oV3R++pE3NcsJg3wgZV vxQvK+tS5a2M3OJGkveU/SupW2XoVU3P4PZ90brJkNAFHmBgZQRSBCQRUtd/SkJCON44 8NNqQTD6hg1PXLt+eZ4hvm7SPwlQKeIz12BSw= Received: by 10.223.125.196 with SMTP id z4mr1734450far.124.1297759525419; Tue, 15 Feb 2011 00:45:25 -0800 (PST) Received: from ernst.jennejohn.org (p578E2430.dip.t-dialin.net [87.142.36.48]) by mx.google.com with ESMTPS id n3sm1505215faa.29.2011.02.15.00.45.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 00:45:24 -0800 (PST) Date: Tue, 15 Feb 2011 09:45:22 +0100 From: Gary Jennejohn To: "Julian H. Stacey" Message-ID: <20110215094522.383e5c47@ernst.jennejohn.org> In-Reply-To: <201102150019.p1F0Jjfc088901@fire.js.berklix.net> References: <20110212170526.00004cab@unknown> <201102150019.p1F0Jjfc088901@fire.js.berklix.net> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: memstick.img is bloated with 7% 2K blocks of nulls X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2011 09:12:43 -0000 On Tue, 15 Feb 2011 01:19:45 +0100 "Julian H. Stacey" wrote: > Could author phk@FreeBSD.ORG cc'd (or someone else if they are clear) > please explain what cmdline is ? > Possibly commit an appended // comment after "int cmdline = 0;" > (in line 76 of 8.1 & current src/sbin/mdconfig/mdconfig.c) wgat it's for ? > > (cmdline seems in most places to maybe be an enum { 1 > 2 3 } for { a d l } alternate forms of command mdconfig, > ... & yet case 'd': sets cmdline = 3 not 2 ? > (& 't' & 'f' sets cmdline=2 ; not 1. Puzzling. > It's simply a state machine to ensure that mutually exclusive options aren't used together. See the manpage; it's pretty clear from it that only certain combinations of options are allowed. -- Gary Jennejohn