From owner-freebsd-current@FreeBSD.ORG Tue Mar 30 04:21:12 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 8311B16A4CE for ; Tue, 30 Mar 2004 04:21:12 -0800 (PST) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B1E643D31 for ; Tue, 30 Mar 2004 04:21:12 -0800 (PST) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i2UCLCgd093165; Tue, 30 Mar 2004 04:21:12 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i2UCLAPo093164; Tue, 30 Mar 2004 04:21:10 -0800 (PST) (envelope-from rizzo) Date: Tue, 30 Mar 2004 04:21:10 -0800 From: Luigi Rizzo To: Bruce Evans Message-ID: <20040330042110.A92755@xorpc.icir.org> References: <20040329163926.A38109@xorpc.icir.org> <20040330005013.GA53546@ns1.xcllnt.net> <20040329234212.A72990@xorpc.icir.org> <20040330080250.GA69610@dhcp01.pn.xcllnt.net> <20040330212234.B10192@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040330212234.B10192@gamplex.bde.org>; from bde@zeta.org.au on Tue, Mar 30, 2004 at 09:38:18PM +1000 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 12:21:12 -0000 On Tue, Mar 30, 2004 at 09:38:18PM +1000, Bruce Evans wrote: ... > > > you do need some way to disambiguate between the case of a device > > > ("bsdlabel ad0") and a file in the current directory ("bdslabel > > > ad0"). > > The absolute path hack is a bad way to do this. It depends on the > historical brokenness of adding a /dev prefix to the pathname unless > the pathname begins with a leading slash. Bruce, i understand that we live in a broken and inconsistent world with pollution, war, injustice all over the place. But I am just trying to add a trivial feature to the version of bsdlabel in FreeBSD-current in a way that does not upset the vast majority of its user and does not require fixing the world's brokenness or using "your version of disklabel". I understand your point and your comments in this and other related threads, but other than as a statement of principles it is difficult to make any practical use of them, sorry! cheers luigi > > The file takes precedence, because any filename that does not contain > > any directory elements is assumed to live in the current directory. The > > So should any pathname that doesn't contain a leading slash (e.g., ./foo, > or foo/bar). > > > 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. > > Unfortunately, disklabel never worked like that, and bsdlabel inherited > most of disklabel's bugs and added more. > > %%% > Script started on Tue Mar 30 21:37:05 2004 > ttyp0:bde@besplex:/tmp> touch foo > ttyp0:bde@besplex:/tmp> bsdlabel foo > bsdlabel: /dev/foo: No such file or directory > ttyp0:bde@besplex:/tmp> bsdlabel ./foo > bsdlabel: /dev/./foo: No such file or directory > ttyp0:bde@besplex:/tmp> exit > > Script done on Tue Mar 30 21:37:17 2004 > %%% > > Bruce > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"