[btrfs-devel]two issues in btrfs-unstable
Yan Zheng
yanzheng at 21cn.com
Wed Oct 17 07:47:47 PDT 2007
Ok, here is the patch.
diff -r f89e7971692f disk-io.c
--- a/disk-io.c Mon Oct 15 16:22:39 2007 -0400
+++ b/disk-io.c Wed Oct 17 22:41:40 2007 +0800
@@ -410,6 +410,7 @@ struct btrfs_root *btrfs_read_fs_root_no
read_extent_buffer(l, &root->root_item,
btrfs_item_ptr_offset(l, path->slots[0]),
sizeof(root->root_item));
+ memcpy(&root->root_key, location, sizeof(*location));
ret = 0;
out:
btrfs_release_path(root, path);
More information about the Btrfs-devel
mailing list