CVSROOT: /sources/grub
Module name: grub2
Changes by: Robert Millan <robertmh> 08/02/28 10:11:06
Modified files:
. : ChangeLog
include/grub/util: getroot.h
util : getroot.c grub-probe.c
Log message:
2008-02-28 Fabian Greffrath <[EMAIL PROTECTED]>
* 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.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/grub2/ChangeLog?cvsroot=grub&r1=1.600&r2=1.601
http://cvs.savannah.gnu.org/viewcvs/grub2/include/grub/util/getroot.h?cvsroot=grub&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/grub2/util/getroot.c?cvsroot=grub&r1=1.8&r2=1.9
http://cvs.savannah.gnu.org/viewcvs/grub2/util/grub-probe.c?cvsroot=grub&r1=1.13&r2=1.14
_______________________________________________
Commit-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-grub