diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-06-09 18:12:12 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-30 20:56:35 +0100 |
commit | 0c10be57b72901464d4bb9ea7b5383c42b08bcae (patch) | |
tree | 78e8746ac8215577208ce658bfb8001f43d9a6b9 /meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0003-Print-the-root-generation-in-btrfs-debug-tree.patch | |
parent | 64497638e70c97f417c2bcdaf99ffcc843ad58ec (diff) | |
download | poky-0c10be57b72901464d4bb9ea7b5383c42b08bcae.tar.gz |
btrfs-tools: new recipe for tools to operate on btrfs images
Added these patches to the recipe to get it to work as desired:
Upstream patches from tmp & for-dragonn branches of repository http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-progs-unstable.git
Also included the debian patches.
Nitin's patch to make the makefile cross friendly
And Xin Zhong's patch to improve mkfs.btrfs
(From OE-Core rev: 57a2140dc9673c65fea088fbd024fbd002e6937b)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0003-Print-the-root-generation-in-btrfs-debug-tree.patch')
-rw-r--r-- | meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0003-Print-the-root-generation-in-btrfs-debug-tree.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0003-Print-the-root-generation-in-btrfs-debug-tree.patch b/meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0003-Print-the-root-generation-in-btrfs-debug-tree.patch new file mode 100644 index 0000000000..ad416208b2 --- /dev/null +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0003-Print-the-root-generation-in-btrfs-debug-tree.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Upstream-Status: Inappropriate [Backport] | ||
2 | From d5b8b904ac40e4c5dbff4008accd7e588b697085 Mon Sep 17 00:00:00 2001 | ||
3 | From: Chris Mason <chris.mason@oracle.com> | ||
4 | Date: Wed, 15 Dec 2010 16:03:00 -0500 | ||
5 | Subject: [PATCH 3/5] Print the root generation in btrfs-debug-tree | ||
6 | |||
7 | Signed-off-by: Chris Mason <chris.mason@oracle.com> | ||
8 | --- | ||
9 | print-tree.c | 5 +++-- | ||
10 | 1 files changed, 3 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/print-tree.c b/print-tree.c | ||
13 | index ac575d5..85399aa 100644 | ||
14 | --- a/print-tree.c | ||
15 | +++ b/print-tree.c | ||
16 | @@ -505,11 +505,12 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) | ||
17 | case BTRFS_ROOT_ITEM_KEY: | ||
18 | ri = btrfs_item_ptr(l, i, struct btrfs_root_item); | ||
19 | read_extent_buffer(l, &root_item, (unsigned long)ri, sizeof(root_item)); | ||
20 | - printf("\t\troot data bytenr %llu level %d dirid %llu refs %u\n", | ||
21 | + printf("\t\troot data bytenr %llu level %d dirid %llu refs %u gen %llu\n", | ||
22 | (unsigned long long)btrfs_root_bytenr(&root_item), | ||
23 | btrfs_root_level(&root_item), | ||
24 | (unsigned long long)btrfs_root_dirid(&root_item), | ||
25 | - btrfs_root_refs(&root_item)); | ||
26 | + btrfs_root_refs(&root_item), | ||
27 | + (unsigned long long)btrfs_root_generation(&root_item)); | ||
28 | if (btrfs_root_refs(&root_item) == 0) { | ||
29 | struct btrfs_key drop_key; | ||
30 | btrfs_disk_key_to_cpu(&drop_key, | ||
31 | -- | ||
32 | 1.7.2.3 | ||
33 | |||