Date: Tue, 30 Mar 2004 10:17:06 +0200 From: Hartmut Brandt <harti@freebsd.org> To: Marcel Moolenaar <marcel@xcllnt.net> Cc: current@freebsd.org Subject: Re: proposed bsdlabel patch Message-ID: <40692D02.5090700@freebsd.org> In-Reply-To: <20040330080250.GA69610@dhcp01.pn.xcllnt.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40692D02.5090700>