[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add option to grub-probe to accept system devices as argumen
From: |
Robert Millan |
Subject: |
Re: [PATCH] Add option to grub-probe to accept system devices as arguments |
Date: |
Wed, 13 Feb 2008 20:35:34 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Wed, Feb 13, 2008 at 05:51:53PM +0100, Fabian Greffrath wrote:
> Robert Millan schrieb:
> >I find that too unreliable. How do you reproduce current behaviour with
> >the command "grub-probe -t fs /dev/sda1" ?
>
> I don't see the problem. Why should this be unreliable?
>
> If the device does not exist, grub-probe will throw a "cannot stat
> /dev/sda1" error with and without the patch. If the device does exist,
> grub-probe will throw a "cannot find device for /dev/sda1" error without
> the patch and will return "ext2" with the patch applied.
>
> See the following examples (I have /dev/hda1, but not /dev/sda1):
>
> Patched grub-probe:
> # grub-probe -t fs /dev/sda1
> grub-probe: error: cannot stat /dev/sda1.
> # grub-probe -t fs /dev/hda1
> ext2
>
> Current grub-probe:
> # grub-probe -t fs /dev/sda1
> grub-probe: error: Cannot stat `/dev/sda1'
> # grub-probe -t fs /dev/hda1
> grub-probe: error: cannot find a device for /dev/hda1.
The last one sounds like a bug.
> >I'd prefer exposed user options than hidden behaviour like this one.
>
> I still don't see the problem. The program will behave absolutely
> predictable: If the argument is a block device it will print the device's
> file system. If the argument is a valid path, it will prints the
> corresponding device's file system. If the argument is none of both, it
> will throw an error.
Yes, but does the user know that? Which interface is easier to figure out
for the user, one in which different actions require different parameters,
or one where the same parameters act in completely different way depending
on the file?
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/11
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/12
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/12
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/13
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Robert Millan, 2008/02/13
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/13
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments,
Robert Millan <=
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/14
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Robert Millan, 2008/02/17
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/18
- Re: [PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/20
- [NEW PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/22
- Re: [NEW PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/22
- Re: [NEW PATCH] Add option to grub-probe to accept system devices as arguments, Robert Millan, 2008/02/24
- Re: [NEW PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/25
- Re: [NEW PATCH] Add option to grub-probe to accept system devices as arguments, Robert Millan, 2008/02/25
- Re: [NEW PATCH] Add option to grub-probe to accept system devices as arguments, Fabian Greffrath, 2008/02/28