From owner-cvs-all@FreeBSD.ORG Tue Feb 27 19:10:18 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0451E16A401 for ; Tue, 27 Feb 2007 19:10:18 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id C841213C48E for ; Tue, 27 Feb 2007 19:10:17 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 26533 invoked from network); 27 Feb 2007 18:32:10 -0000 Received: from ppp-71-139-18-69.dsl.snfc21.pacbell.net (HELO ?10.0.5.55?) (nate-mail@71.139.18.69) by root.org with ESMTPA; 27 Feb 2007 18:32:10 -0000 Message-ID: <45E47935.9070503@root.org> Date: Tue, 27 Feb 2007 10:32:21 -0800 From: Nate Lawson User-Agent: Thunderbird 1.5.0.9 (X11/20070214) MIME-Version: 1.0 To: Nick Hibma References: <20070227090509.7D92516A519@hub.freebsd.org> In-Reply-To: <20070227090509.7D92516A519@hub.freebsd.org> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sbin/mdconfig mdconfig.8 mdconfig.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 19:10:18 -0000 Nick Hibma wrote: > n_hibma 2007-02-27 09:04:56 UTC > > FreeBSD src repository > > Modified files: (Branch: RELENG_6) > sbin/mdconfig mdconfig.8 mdconfig.c > Log: > MFC > rev. 1.34-1.36 mdconfig.8 > rev. 1.52-1.54 mdconfig.c > > Make attach the default for -f and assume '-a' and '-t malloc' flags for '-s > ' (malloc ramdisk) if not specified. > Except it's actually a swap disk, not malloc disk. The code is correct, not the commit message. > @@ -177,6 +181,17 @@ > mdio.md_sectorsize = strtoul(optarg, &p, 0); > break; > case 's': > + if (cmdline == 0) { > + /* Imply ``-a'' */ > + action = ATTACH; > + cmdline = 1; > + } > + if (cmdline == 1) { > + /* Imply ``-t swap'' */ > + mdio.md_type = MD_SWAP; > + mdio.md_options = MD_CLUSTER | MD_AUTOUNIT | MD_COMPRESS; > + cmdline = 2; > + } > if (cmdline != 2) > usage(); > mdio.md_mediasize = (off_t)strtoumax(optarg, &p, 0); -- Nate