[1829] 2008-08-26 Robert Millan <[email protected]>

Robert Millan <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1829
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1829
Author:   robertmh
Date:     2008-08-26 19:09:07 +0000 (Tue, 26 Aug 2008)

Log Message:
-----------
2008-08-26  Robert Millan  <[email protected]>

        * util/biosdisk.c (grub_util_biosdisk_open, open_device)
        (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
        descriptive.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/util/biosdisk.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-08-23 14:51:19 UTC (rev 1828)
+++ trunk/grub2/ChangeLog	2008-08-26 19:09:07 UTC (rev 1829)
@@ -1,3 +1,9 @@
+2008-08-26  Robert Millan  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.

Modified: trunk/grub2/util/biosdisk.c
===================================================================
--- trunk/grub2/util/biosdisk.c	2008-08-23 14:51:19 UTC (rev 1828)
+++ trunk/grub2/util/biosdisk.c	2008-08-26 19:09:07 UTC (rev 1829)
@@ -164,7 +164,7 @@
 
     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))
       {
@@ -288,7 +288,7 @@
       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)
       {
@@ -306,7 +306,7 @@
   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__ */
@@ -835,7 +835,7 @@
     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;
       }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.