+2008-08-26 Robert Millan <rmh@aybabtu.com>
+
+ * util/biosdisk.c (grub_util_biosdisk_open, open_device)
+ (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
+ descriptive.
+
2008-08-23 Bean <bean123ch@gmail.com>
* conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
fd = open (map[drive].device, O_RDONLY);
if (fd == -1)
- return grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", map[drive].device);
+ return grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' while attempting to get disk size", map[drive].device);
if (fstat (fd, &st) < 0 || ! S_ISBLK (st.st_mode))
{
is_partition = linux_find_partition (dev, disk->partition->start);
/* Open the partition. */
- grub_util_info ("opening the device `%s'", dev);
+ grub_util_info ("opening the device `%s' in open_device()", dev);
fd = open (dev, flags);
if (fd < 0)
{
fd = open (map[disk->id].device, flags);
if (fd < 0)
{
- grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", map[disk->id].device);
+ grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' in open_device()", map[disk->id].device);
return -1;
}
#endif /* ! __linux__ */
fd = open (os_dev, O_RDONLY);
if (fd == -1)
{
- grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", os_dev);
+ grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' while attempting to get disk geometry", os_dev);
free (name);
return 0;
}