Fix merge error in NetBSD code.
This commit is contained in:
parent
123b7a8571
commit
fa9d256ee4
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
|
||||||
|
|
||||||
|
* kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
|
||||||
|
Fix merge error in NetBSD code.
|
||||||
|
(find_partition_start) [__NetBSD__]: Likewise.
|
||||||
|
|
||||||
2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
|
2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
|
||||||
|
|
||||||
Fix grub-mkrescue usage unit testing.
|
Fix grub-mkrescue usage unit testing.
|
||||||
|
|
|
@ -412,7 +412,8 @@ devmapper_fail:
|
||||||
fd = open (dev, O_RDONLY);
|
fd = open (dev, O_RDONLY);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
{
|
{
|
||||||
grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' while attempting to get disk geometry", dev);
|
grub_error (GRUB_ERR_BAD_DEVICE,
|
||||||
|
"cannot open `%s' while attempting to get disk geometry", dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,9 +435,6 @@ devmapper_fail:
|
||||||
# if !defined(__NetBSD__)
|
# if !defined(__NetBSD__)
|
||||||
return hdg.start;
|
return hdg.start;
|
||||||
# else /* defined(__NetBSD__) */
|
# else /* defined(__NetBSD__) */
|
||||||
/* Since dev and convert_system_partition_to_system_disk (dev) are
|
|
||||||
* different, we know that dev is of the form /dev/r[wsc]d[0-9]+[a-z]
|
|
||||||
* and in particular it cannot be a floppy device. */
|
|
||||||
index = dev[strlen(dev) - 1] - 'a';
|
index = dev[strlen(dev) - 1] - 'a';
|
||||||
|
|
||||||
if (index >= label.d_npartitions)
|
if (index >= label.d_npartitions)
|
||||||
|
@ -1433,7 +1431,6 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
|
||||||
/* Since os_dev and convert_system_partition_to_system_disk (os_dev) are
|
/* Since os_dev and convert_system_partition_to_system_disk (os_dev) are
|
||||||
* different, we know that os_dev is of the form /dev/r[wsc]d[0-9]+[a-z]
|
* different, we know that os_dev is of the form /dev/r[wsc]d[0-9]+[a-z]
|
||||||
* and in particular it cannot be a floppy device. */
|
* and in particular it cannot be a floppy device. */
|
||||||
index = os_dev[strlen(os_dev) - 1] - 'a';
|
|
||||||
# endif /* !defined(__NetBSD__) */
|
# endif /* !defined(__NetBSD__) */
|
||||||
|
|
||||||
start = find_partition_start (os_dev);
|
start = find_partition_start (os_dev);
|
||||||
|
|
Loading…
Reference in a new issue