mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
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:
1 parent
6e9b4aabd4
commit
1a8b05264d
2 files changed
+13
No files matched your search
@@ -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>
|
2008-01-21 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
* disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
|
* disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
|
||||||
|
|||||||
@@ -691,6 +691,10 @@ grub_reiserfs_mount (grub_disk_t disk)
|
|||||||
return data;
|
return data;
|
||||||
|
|
||||||
fail:
|
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);
|
grub_free (data);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user