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/0002-Check-for-RAID10-in-set_avail_alloc_bits.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/0002-Check-for-RAID10-in-set_avail_alloc_bits.patch')
-rw-r--r-- | meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0002-Check-for-RAID10-in-set_avail_alloc_bits.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0002-Check-for-RAID10-in-set_avail_alloc_bits.patch b/meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0002-Check-for-RAID10-in-set_avail_alloc_bits.patch new file mode 100644 index 0000000000..c8557f7863 --- /dev/null +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools/upstream-for-dragonn/0002-Check-for-RAID10-in-set_avail_alloc_bits.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | Upstream-Status: Inappropriate [Backport] | ||
2 | From 454a0538680bc17656cefadef1f167917ea0b856 Mon Sep 17 00:00:00 2001 | ||
3 | From: Chris Mason <chris.mason@oracle.com> | ||
4 | Date: Wed, 15 Dec 2010 16:02:45 -0500 | ||
5 | Subject: [PATCH 2/5] Check for RAID10 in set_avail_alloc_bits | ||
6 | |||
7 | When raid is setup with mkfs, it is supposed to cow the initial filesystem | ||
8 | it creates up to the desired raid level. RAID10 was not in the list | ||
9 | of RAID levels it checked for, so the initial FS created for RAID10 | ||
10 | actually only lived on the first disk. | ||
11 | |||
12 | This works well enough because all the roots get quickly cowed during the | ||
13 | first mount. The exception is the data relocation tree, which only gets | ||
14 | cowed when we do a balance. | ||
15 | |||
16 | Signed-off-by: Chris Mason <chris.mason@oracle.com> | ||
17 | --- | ||
18 | extent-tree.c | 1 + | ||
19 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
20 | |||
21 | diff --git a/extent-tree.c b/extent-tree.c | ||
22 | index b2f9bb2..108933f 100644 | ||
23 | --- a/extent-tree.c | ||
24 | +++ b/extent-tree.c | ||
25 | @@ -1775,6 +1775,7 @@ static void set_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags) | ||
26 | { | ||
27 | u64 extra_flags = flags & (BTRFS_BLOCK_GROUP_RAID0 | | ||
28 | BTRFS_BLOCK_GROUP_RAID1 | | ||
29 | + BTRFS_BLOCK_GROUP_RAID10 | | ||
30 | BTRFS_BLOCK_GROUP_DUP); | ||
31 | if (extra_flags) { | ||
32 | if (flags & BTRFS_BLOCK_GROUP_DATA) | ||
33 | -- | ||
34 | 1.7.2.3 | ||
35 | |||