From owner-freebsd-arch Tue Oct 31 12:49:33 2000 Delivered-To: freebsd-arch@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 22BAA37B4D7 for ; Tue, 31 Oct 2000 12:49:31 -0800 (PST) Received: from laptop.baldwin.cx (john@dhcp241.osd.bsdi.com [204.216.28.241]) by pike.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id e9VKjuf18233; Tue, 31 Oct 2000 12:45:56 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <14675.973021175@critter> Date: Tue, 31 Oct 2000 12:46:57 -0800 (PST) From: John Baldwin To: Poul-Henning Kamp Subject: Re: Like to commit my diskprep Cc: Warner Losh , arch@FreeBSD.org Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 31-Oct-00 Poul-Henning Kamp wrote: > In message , John Baldwin writes: > >>> My only request is that you disallow the bogus >>> >>> diskprep ad0 >>> >>> syntax and require people to enter a full and decent path: >>> >>> diskprep /dev/ad0 >> >>Why? Both fdisk(8) and disklabel(8) don't require the full path. >>Requiring it for diskprep would violate POLA IMO. > > For that to be consistent we would need to allow for example: > > mount ad0s1a /mnt > > That would be bogus. > > In unix we refer to devices by pathname, we should stick to that. > > The magic "Hmm, I'll try sticking /dev in front" DWIM code is > bad IMO. Fair enough. Should we then start changing our other tools to make the bogus form deprecated and warn the user with the intention of axeing it altogether in 6.0 or some such? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message