]> git.proxmox.com Git - grub2.git/commit - util/grub-probe.c
2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
authorrobertmh <robertmh@localhost>
Thu, 28 Feb 2008 10:11:06 +0000 (10:11 +0000)
committerrobertmh <robertmh@localhost>
Thu, 28 Feb 2008 10:11:06 +0000 (10:11 +0000)
commit79ca2d78d4101857c62f69fc77f51da25c818cd2
tree85002513f9163559a921d0dd437a553958fa0759
parent0d16e571f1caface4588bf6ab90c5e457a79ddf7
2008-02-28  Fabian Greffrath  <greffrath@leat.rub.de>

        * include/grub/util/getroot.h (grub_util_check_block_device): Export new
        function.
        * util/getroot.c (grub_util_check_block_device): New function that
        returns the given argument if it is a block device and returns NULL else.
        * util/grub-probe.c (argument_is_device): New variable.
        (probe): Promote device_name from a variable to an argument. Receive
        device_name from grub_util_check_block_device() if path is NULL and from
        grub_guess_root_device() else. Do not free() device_name anymore.
        (options): Introduce new parameter '-d, --device'.
        (main): Add description of the new parameter to the help screen.
        Rename path variable to argument. Set argument_is_device if the '-d'
        option is given. Pass argument to probe() depending on
        argument_is_device.
ChangeLog
include/grub/util/getroot.h
util/getroot.c
util/grub-probe.c