From owner-freebsd-current@FreeBSD.ORG Tue Mar 30 00:17:13 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 782BA16A4CE for ; Tue, 30 Mar 2004 00:17:13 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id B70FC43D2D for ; Tue, 30 Mar 2004 00:17:12 -0800 (PST) (envelope-from harti@freebsd.org) Received: from freebsd.org (beagle [193.175.132.100])i2U8H6J26544; Tue, 30 Mar 2004 10:17:06 +0200 (MEST) Message-ID: <40692D02.5090700@freebsd.org> Date: Tue, 30 Mar 2004 10:17:06 +0200 From: Hartmut Brandt User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031024 X-Accept-Language: ru, en-us MIME-Version: 1.0 To: Marcel Moolenaar 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> In-Reply-To: <20040330080250.GA69610@dhcp01.pn.xcllnt.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Luigi Rizzo cc: current@freebsd.org 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 08:17:13 -0000 Marcel Moolenaar wrote: > On Mon, Mar 29, 2004 at 11:42:12PM -0800, Luigi Rizzo wrote: > >>actually, following up to myself: >> >>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 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. > That makes it very easy to trash a file in the current directory. harti