2009-03-21 Bean <bean123ch@gmail.com>
* fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for out of range error.
This commit is contained in:
parent
177b82ca8b
commit
2156d5ba73
2 changed files with 8 additions and 0 deletions
|
@ -577,6 +577,9 @@ grub_ext2_mount (grub_disk_t disk)
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue