[2034] 2009-03-21 Bean <[email protected]>

Bean <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2034
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2034
Author:   bean
Date:     2009-03-21 07:35:04 +0000 (Sat, 21 Mar 2009)
Log Message:
-----------
2009-03-21  Bean  <[email protected]>

	* fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
	out of range error.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/fs/ext2.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-03-19 09:36:52 UTC (rev 2033)
+++ trunk/grub2/ChangeLog	2009-03-21 07:35:04 UTC (rev 2034)
@@ -1,3 +1,8 @@
+2009-03-21  Bean  <[email protected]>
+
+	* fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
+	out of range error.
+
 2009-03-18  Michel Dänzer  <[email protected]>
 
 	* fs/ext2.c (grub_ext2_read_block): Take endianness into account when

Modified: trunk/grub2/fs/ext2.c
===================================================================
--- trunk/grub2/fs/ext2.c	2009-03-19 09:36:52 UTC (rev 2033)
+++ trunk/grub2/fs/ext2.c	2009-03-21 07:35:04 UTC (rev 2034)
@@ -577,6 +577,9 @@
   return data;
 
  fail:
+  if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
+    grub_error (GRUB_ERR_BAD_FS, "not an ext2 filesystem");
+
   grub_free (data);
   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.