From owner-freebsd-current@FreeBSD.ORG Tue Mar 30 02:57:43 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B16C416A4CE; Tue, 30 Mar 2004 02:57:43 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2EB143D39; Tue, 30 Mar 2004 02:57:42 -0800 (PST) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i2UB0UPc012970 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Mar 2004 14:01:09 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i2UAv5wP093138; Tue, 30 Mar 2004 13:57:05 +0300 (EEST) (envelope-from ru) Date: Tue, 30 Mar 2004 13:57:05 +0300 From: Ruslan Ermilov To: Hartmut Brandt Message-ID: <20040330105705.GB92824@ip.net.ua> References: <20040329163926.A38109@xorpc.icir.org> <20040330005013.GA53546@ns1.xcllnt.net> <20040329230643.B70930@xorpc.icir.org> <20040329234212.A72990@xorpc.icir.org> <20040330080250.GA69610@dhcp01.pn.xcllnt.net> <40692D02.5090700@freebsd.org> <20040330003408.A75276@xorpc.icir.org> <406938A1.9030507@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline In-Reply-To: <406938A1.9030507@freebsd.org> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Luigi Rizzo cc: current@FreeBSD.org cc: Marcel Moolenaar Subject: Re: proposed bsdlabel patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 10:57:43 -0000 --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 30, 2004 at 11:06:41AM +0200, Hartmut Brandt wrote: > Luigi Rizzo wrote: > >On Tue, Mar 30, 2004 at 10:17:06AM +0200, Hartmut Brandt wrote: > > > >>Marcel Moolenaar wrote: > > > >... > > > >>>The file takes precedence, because any filename that does not contain > >>>any directory elements is assumed to live in the current directory. The > >>>shorthand for device special files is secundairy to that, because it's > >>>a convenience only. If the device special file is meant, it has to be > >>>specified as /dev/ad0 in the example given. > > > > > >it may be secondary, but it has been the historical behaviour for > >ages and I don't want to hear people rightly screaming for a change > >that broke a huge number of existing scripts. > > > > > >>That makes it very easy to trash a file in the current directory. > > > > > >that is a minor concern. "rm" has the same problem :) >=20 > Not really. rm has no magic that interpretes da0 as /dev/da0. If you > happen to have a file da0 in your current directory (let's say the saved > disklabel or so) and specify just da0 to disklabel expecting that it > will work on /dev/da0 it will unexpecedly clobber your file. Such > automatisms make things not easier, but more complex - you have to > remember them. You need to get the habit to do ls -l before you do > disklabel da0. I'd say keep the '-f' option, that'll make things clearer. >=20 FWIW, fdisk(8), diskinfo(8), fsck_ffs(8) (and probably others) prefer the file in the current directory to a /dev entry. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAaVKBUkv4P6juNwoRAhxQAJ4265xTX5mCKp6FWqt74T2Iv4gwfgCeMnmr BM3YRvnL3AgmhELif2jhqek= =l2Bi -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--