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