From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 15 00:20:16 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 9277F106566B for ; Tue, 15 Feb 2011 00:20:16 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 1994D8FC14 for ; Tue, 15 Feb 2011 00:20:15 +0000 (UTC) Received: from park.js.berklix.net (p5B22FB43.dip.t-dialin.net [91.34.251.67]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id p1F0K8Ei083315; Tue, 15 Feb 2011 00:20:09 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id p1F0JuOe036538; Tue, 15 Feb 2011 01:19:58 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id p1F0Jjfc088901; Tue, 15 Feb 2011 01:19:50 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201102150019.p1F0Jjfc088901@fire.js.berklix.net> To: Bruce Cran From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Sat, 12 Feb 2011 17:05:26 GMT." <20110212170526.00004cab@unknown> Date: Tue, 15 Feb 2011 01:19:45 +0100 Sender: jhs@berklix.com Cc: hackers@freebsd.org, phk@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 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 00:20:16 -0000 > But from the manual page: > > -f file > Filename to use for the vnode type memory disk. Options -a > and -t vnode are implied if not specified. > > So if you specify -f then you get -t vnode automatically. Ah yes. Reading src/sbin/mdconfig/mdconfig.c with your "mdconfig -a -f mfsroot" it seems the manual correctly represents the code ... except I'm lost what the purpose of cmdline is ? ( BTW I was wrong re: > I suspect -t default is malloc, though manual doesnt say that 'f' actually follows with: mdio.md_type = MD_VNODE; ) 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. Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text; Not quoted-printable, Not HTML, Not base 64. Reply below text sections not at top, to avoid breaking cumulative context.