From owner-cvs-all@FreeBSD.ORG Fri Nov 9 18:57:01 2007 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 799B216A419; Fri, 9 Nov 2007 18:57:01 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id F319C13C4A3; Fri, 9 Nov 2007 18:57:00 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lA9Iu3rd000804 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2007 20:56:21 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id lA9ItweP019956; Fri, 9 Nov 2007 20:55:58 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id lA9ItwQ8019955; Fri, 9 Nov 2007 20:55:58 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 9 Nov 2007 20:55:58 +0200 From: Giorgos Keramidas To: Pawel Jakub Dawidek Message-ID: <20071109185557.GA19905@kobe.laptop> References: <200711091802.lA9I2q5R060293@repoman.freebsd.org> <20071109182623.GA37371@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071109182623.GA37371@garage.freebsd.pl> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.123, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.28, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sbin/mdconfig mdconfig.8 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: Fri, 09 Nov 2007 18:57:01 -0000 On 2007-11-09 19:26, Pawel Jakub Dawidek wrote: >On Fri, Nov 09, 2007 at 06:02:52PM +0000, Giorgos Keramidas wrote: >> Instead of hardcoding md10 as the device node in the cd9660 example, >> use a trick submitted by Ruslan. >> >> Revision Changes Path >> 1.38 +2 -3 src/sbin/mdconfig/mdconfig.8 >> >> http://cvsweb.FreeBSD.org/src/sbin/mdconfig/mdconfig.8.diff?r1=1.37&r2=1.38&f=h >> --- src/sbin/mdconfig/mdconfig.8 2007/05/18 13:57:17 1.37 >> +++ src/sbin/mdconfig/mdconfig.8 2007/11/09 18:02:51 1.38 >> @@ -39,9 +39,9 @@ >> .\" @(#)vnconfig.8 8.1 (Berkeley) 6/5/93 >> .\" from: src/usr.sbin/vnconfig/vnconfig.8,v 1.19 2000/12/27 15:30:29 >> .\" >> -.\" $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sbin/mdconfig/mdconfig.8,v 1.37 2007/05/18 13:57:17 keramida Exp $ >> +.\" $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sbin/mdconfig/mdconfig.8,v 1.38 2007/11/09 18:02:51 keramida Exp $ >> .\" >> -.Dd May 18, 2007 >> +.Dd November 9, 2007 >> .Dt MDCONFIG 8 >> .Os >> .Sh NAME >> @@ -218,8 +218,7 @@ mount /dev/md0c /mnt >> .Pp >> To mount an ISO 9660 CD image file: >> .Bd -literal -offset indent >> -mdconfig -a -t vnode -u 10 -f cdimage.iso >> -mount_cd9660 /dev/md10 /mnt >> +mount -t cd9660 /dev/`mdconfig -a -t vnode -f cdimage.iso` /mnt > > Another trick is to just skip '-t vnode' as it is assumed when -f is > used. Nice to know :) Should I update mdconfig.8 again? I was a bit worried about thhe `backquoted command` length, but it seems to fit nicely even in console windows. Reducing the line-length a bit more is not strictly necessary, but it's worth considering. Unless it would make the example more cryptic than useful, I guess :)