memstick.img is bloated with 7% 2K blocks of nulls

Gary Jennejohn gljennjohn at googlemail.com
Tue Feb 15 09:12:43 UTC 2011


On Tue, 15 Feb 2011 01:19:45 +0100
"Julian H. Stacey" <jhs at berklix.com> wrote:

> Could author phk at 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


More information about the freebsd-hackers mailing list