From owner-freebsd-arch Tue Oct 31 11:39:42 2000 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 1BED837B4C5; Tue, 31 Oct 2000 11:39:37 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.9.3) with ESMTP id e9VJdZu14677; Tue, 31 Oct 2000 20:39:35 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: John Baldwin Cc: arch@FreeBSD.ORG, Warner Losh Subject: Re: Like to commit my diskprep In-Reply-To: Your message of "Tue, 31 Oct 2000 11:31:18 PST." Date: Tue, 31 Oct 2000 20:39:35 +0100 Message-ID: <14675.973021175@critter> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. I don't want us to propagte that mistake. disks don't have their own private namespace, neither do tapes or ttys. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message