Subject: RE: bin/36609: Fix {fdisk,disklabel}(8) device path parsing
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: De Zeurkous <zeurkous@nichten.info>
List: netbsd-bugs
Date: 07/06/2007 13:05:10
The following reply was made to PR bin/36609; it has been noted by GNATS.
From: "De Zeurkous" <zeurkous@nichten.info>
To: gnats-bugs@NetBSD.org
Cc:
Subject: RE: bin/36609: Fix {fdisk,disklabel}(8) device path parsing
Date: Fri, 6 Jul 2007 13:03:32 -0000 (UTC)
On Fri, July 6, 2007 06:35, Alan Barrett wrote:
> The following reply was made to PR bin/36609; it has been noted by GNATS.
>
> From: Alan Barrett <apb@cequrux.com>
> To: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org,
> netbsd-bugs@NetBSD.org
> Cc:
> Subject: Re: bin/36609: Fix {fdisk,disklabel}(8) device path parsing
> Date: Fri, 6 Jul 2007 00:19:50 +0200
>
> On Thu, 05 Jul 2007, Christos Zoulas wrote:
>[snip]
>
> In this scheme, users who want "./wd2" can ask for that explicitly,
> while users who want "/dev/rwd2d" (where "d" is the raw partition) can
> ask for any of "wd2", "wd2d", or "/dev/rwd2d".
Note that this solution does not take into account recursive /dev
configurations (also my bad). Propose to check if path begins with '/' or
'./' instead. Automaged processes are of course strongly encouraged to use
the device file in the first place; this magic is strictly intended for
admin convenience.
>
> I don't think it's un-unix-like for an interface that's intended to open
> a "disk" to interpreting its argument as a disk name in preference to a
> file name.
No, but it is un-UNIX-like to ask for a disk identifier instead of the
corresponding device file in the first place. Note that I do not oppose
this behavior; see my earlier reply.
--De Zeurkous.
>
> --apb (Alan Barrett)
>
>