Blame SOURCES/0071-btrfs-fix-get_root-key-comparison-failures-due-to-en.patch

a85e8e
From a1fee7dd97762ecc39a9b74c7c0fcc97df0fcca7 Mon Sep 17 00:00:00 2001
a85e8e
From: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
a85e8e
Date: Mon, 31 Mar 2014 15:32:30 +0100
a85e8e
Subject: [PATCH 071/260] btrfs: fix get_root key comparison failures due to
a85e8e
 endianness
a85e8e
a85e8e
* grub-core/fs/btrfs.c (get_root): Convert
a85e8e
GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
a85e8e
---
a85e8e
 ChangeLog            | 7 +++++++
a85e8e
 grub-core/fs/btrfs.c | 2 +-
a85e8e
 2 files changed, 8 insertions(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/ChangeLog b/ChangeLog
a85e8e
index 1cb3b683f..accffade8 100644
a85e8e
--- a/ChangeLog
a85e8e
+++ b/ChangeLog
a85e8e
@@ -1,3 +1,10 @@
a85e8e
+2014-03-31  Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
a85e8e
+
a85e8e
+	btrfs: fix get_root key comparison failures due to endianness
a85e8e
+
a85e8e
+	* grub-core/fs/btrfs.c (get_root): Convert
a85e8e
+	GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
a85e8e
+
a85e8e
 2014-03-31  Colin Watson  <cjwatson@ubuntu.com>
a85e8e
 
a85e8e
 	Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
a85e8e
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
a85e8e
index 89666b6fd..f7b6c1520 100644
a85e8e
--- a/grub-core/fs/btrfs.c
a85e8e
+++ b/grub-core/fs/btrfs.c
a85e8e
@@ -1201,7 +1201,7 @@ get_root (struct grub_btrfs_data *data, struct grub_btrfs_key *key,
a85e8e
   struct grub_btrfs_key key_out, key_in;
a85e8e
   struct grub_btrfs_root_item ri;
a85e8e
 
a85e8e
-  key_in.object_id = GRUB_BTRFS_ROOT_VOL_OBJECTID;
a85e8e
+  key_in.object_id = grub_cpu_to_le64_compile_time (GRUB_BTRFS_ROOT_VOL_OBJECTID);
a85e8e
   key_in.offset = 0;
a85e8e
   key_in.type = GRUB_BTRFS_ITEM_TYPE_ROOT_ITEM;
a85e8e
   err = lower_bound (data, &key_in, &key_out,
a85e8e
-- 
a85e8e
2.13.0
a85e8e