]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 10 Jan 2011 16:35:32 +0000 (17:35 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 10 Jan 2011 16:35:32 +0000 (17:35 +0100)
badfs.
Reported by: TiCPU.

ChangeLog
grub-core/fs/btrfs.c

index 85495e8addb2d9c864ac18380664bf047525afbc..12927d0f2c64ca1846bb3f7e04b490f2769043b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
+       badfs.
+       Reported by: TiCPU.
+
 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
index a2ee485b4bbf37cb685a46c7318dadedce15bbe9..179891da8a3121b03f2140c42787e27066ae506b 100644 (file)
@@ -60,6 +60,9 @@ grub_btrfs_mount (grub_disk_t disk)
   return data;
 
  fail:
+  if (grub_errno == GRUB_ERR_OUT_OF_RANGE)
+    grub_error (GRUB_ERR_BAD_FS, "not a Btrfs filesystem");
+
   grub_free (data);
   return NULL;
 }