Displaying 3 results from an estimated 3 matches for "create_raid_groups".
2011 Nov 01
0
[PATCH] Btrfs-progs: change the way mkfs picks raid profiles
...fs.c | 46 +++++++++++++++++++++++++++++++++++-----------
1 files changed, 35 insertions(+), 11 deletions(-)
diff --git a/mkfs.c b/mkfs.c
index e3ced19..66f0c9d 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -228,12 +228,26 @@ static int create_one_raid_group(struct btrfs_trans_handle *trans,
static int create_raid_groups(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 data_profile,
- u64 metadata_profile, int mixed)
+ int data_profile_opt, u64 metadata_profile,
+ int metadata_profile_opt, int mixed)
{
u64 num_devices = btrfs_super_num_devices(&root->fs_info...
2013 May 14
1
[PATCH] Btrfs-progs: fix missing recow roots when making btrfs filesystem
...neration(&info->csum_root->root_item);
+ if (generation != trans->transid) {
+ ret = __btrfs_cow_block(trans, info->csum_root,
+ info->csum_root->node, NULL, 0, &tmp, 0, 0);
+ BUG_ON(ret);
+ free_extent_buffer(tmp);
+ }
return 0;
}
@@ -281,8 +299,6 @@ static int create_raid_groups(struct btrfs_trans_handle *trans,
(allowed & metadata_profile));
BUG_ON(ret);
- ret = recow_roots(trans, root);
- BUG_ON(ret);
}
if (!mixed && num_devices > 1 && (allowed & data_profile)) {
ret = create_one_raid_group(trans, root,
@@ -290,6 +306,9...
2013 Mar 26
15
Kernel bug on mismatching generation_v2 in inode.c:835
Dear list members,
In my previous thread at
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg23333.html
there was a space_cache kernel bug/panic on kernel 3.8. I could
successfully "fix" that with rebuilding the cache. But some files were
missing/corrupted. So I booted a rescue CD with kernel 3.7 and ran
btrfsck --repair, which repaired quite a few things.
After a reboot I