From 8bfbb6b6f83975d85cf2f2018d9c08d0e6cfb500 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Tue, 22 Apr 2008 14:06:56 -0400 Subject: Update the Ext3 converter The main changes in this patch are adding chunk handing and data relocation ability. In the last step of conversion, the converter relocates data in system chunk and move chunk tree into system chunk. In the rollback process, the converter remove chunk tree from system chunk and copy data back. Regards YZ --- --- mkfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkfs.c') diff --git a/mkfs.c b/mkfs.c index a629e498..7317bcd3 100644 --- a/mkfs.c +++ b/mkfs.c @@ -79,7 +79,7 @@ static int make_root_dir(int fd, const char *device_name) { trans = btrfs_start_transaction(root, 1); bytes_used = btrfs_super_bytes_used(&root->fs_info->super_copy); - root->fs_info->force_system_allocs = 1; + root->fs_info->system_allocs = 1; ret = btrfs_make_block_group(trans, root, bytes_used, BTRFS_BLOCK_GROUP_SYSTEM, BTRFS_FIRST_CHUNK_TREE_OBJECTID, @@ -96,7 +96,7 @@ static int make_root_dir(int fd, const char *device_name) { chunk_start, chunk_size); BUG_ON(ret); - root->fs_info->force_system_allocs = 0; + root->fs_info->system_allocs = 0; btrfs_commit_transaction(trans, root); trans = btrfs_start_transaction(root, 1); BUG_ON(!trans); -- cgit v1.2.3