2008-01-21 Robert Millan <rmh@aybabtu.com>
Fix detection of very small filesystems (like tar). * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's a problem with this disk).
This commit is contained in:
parent
6e9b4aabd4
commit
1a8b05264d
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
2008-01-21 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
Fix detection of very small filesystems (like tar).
|
||||
|
||||
* fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
|
||||
contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
|
||||
GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
|
||||
a problem with this disk).
|
||||
|
||||
2008-01-21 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
|
||||
|
|
|
@ -691,6 +691,10 @@ grub_reiserfs_mount (grub_disk_t disk)
|
|||
return data;
|
||||
|
||||
fail:
|
||||
/* Disk is too small to contain a ReiserFS. */
|
||||
if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
|
||||
grub_error (GRUB_ERR_BAD_FS, "not a reiserfs filesystem");
|
||||
|
||||
grub_free (data);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue