[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: |
Fabian Greffrath |
Subject: |
Re: [PATCH] Add option to grub-probe to accept system devices as arguments |
Date: |
Wed, 13 Feb 2008 17:51:53 +0100 |
User-agent: |
Thunderbird 2.0.0.9 (Windows/20071031) |
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.
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.
Cheers,
Fabian
- 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 <=
- 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/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