Date: Tue, 31 Oct 2000 12:46:57 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: Warner Losh <imp@village.org>, arch@FreeBSD.org Subject: Re: Like to commit my diskprep Message-ID: <XFMail.001031124657.jhb@FreeBSD.org> In-Reply-To: <14675.973021175@critter>
next in thread | previous in thread | raw e-mail | index | archive | help
On 31-Oct-00 Poul-Henning Kamp wrote: > In message <XFMail.001031113118.jhb@FreeBSD.org>, 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 <jhb@FreeBSD.org> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001031124657.jhb>