From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Add option to grub-probe to accept system devices as arguments
Date: Wed, 13 Feb 2008 20:35:34 +0100 [thread overview]
Message-ID: <20080213193534.GA28711@thorin> (raw)
In-Reply-To: <47B32029.200@leat.rub.de>
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 /.)
next prev parent reply other threads:[~2008-02-13 19:39 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-12 13:17 [PATCH] Add option to grub-probe to accept system devices as arguments Fabian Greffrath
2008-02-13 13:03 ` Fabian Greffrath
2008-02-13 15:42 ` Robert Millan
2008-02-13 16:51 ` Fabian Greffrath
2008-02-13 19:35 ` Robert Millan [this message]
2008-02-14 8:33 ` Fabian Greffrath
2008-02-17 13:42 ` Robert Millan
2008-02-18 12:54 ` Fabian Greffrath
2008-02-20 14:14 ` Fabian Greffrath
2008-02-22 14:32 ` [NEW PATCH] " Fabian Greffrath
2008-02-22 15:36 ` Fabian Greffrath
2008-02-24 15:22 ` Robert Millan
2008-02-25 9:49 ` Fabian Greffrath
2008-02-25 14:20 ` Robert Millan
2008-02-28 7:26 ` Fabian Greffrath
2008-02-28 10:10 ` Robert Millan
2008-02-28 10:28 ` Fabian Greffrath
2008-02-28 10:41 ` Robert Millan
2008-02-28 11:46 ` Fabian Greffrath
2008-02-28 17:07 ` Robert Millan
2008-02-29 8:33 ` Fabian Greffrath
2008-03-03 21:06 ` Robert Millan
2008-03-04 7:57 ` Fabian Greffrath
2008-03-05 12:27 ` [NEW PATCH] os-prober output parser Fabian Greffrath
2008-03-13 7:56 ` Fabian Greffrath
2008-03-19 14:38 ` Robert Millan
2008-03-19 15:18 ` Fabian Greffrath
2008-03-19 16:10 ` Robert Millan
2008-03-20 10:02 ` Fabian Greffrath
2008-03-20 10:36 ` Robert Millan
2008-03-25 7:27 ` Fabian Greffrath
2008-04-07 8:39 ` Fabian Greffrath
2008-04-09 8:32 ` Fabian Greffrath
2008-04-09 10:11 ` Robert Millan
2008-04-09 12:41 ` Fabian Greffrath
2008-04-13 10:52 ` Robert Millan
2008-04-14 11:11 ` Fabian Greffrath
2008-02-29 13:46 ` [NEW PATCH] Add option to grub-probe to accept system devices as arguments Fabian Greffrath
2008-03-03 20:58 ` Robert Millan
2008-02-24 15:23 ` Robert Millan
-- strict thread matches above, loose matches on Subject: below --
2008-02-12 9:49 [PATCH] " Fabian Greffrath
2008-02-12 11:28 ` Robert Millan
2008-02-11 15:48 Fabian Greffrath
2008-02-11 16:12 ` Robert Millan
2008-02-11 8:53 Fabian Greffrath
2008-02-11 14:39 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080213193534.GA28711@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.