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
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
||||
2009-03-18 Michel Dänzer <michel@daenzer.net>
|
||||
|
||||
* fs/ext2.c (grub_ext2_read_block): Take endianness into account when
|
||||
|
|
|
@ -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…
Reference in a new issue