You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Btrfs: Add support for duplicate blocks on a single spindle
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
+5
-3
@@ -913,9 +913,11 @@ struct btrfs_root *open_ctree(struct super_block *sb,
|
||||
|
||||
fs_info->generation = btrfs_super_generation(disk_super) + 1;
|
||||
if (btrfs_super_num_devices(disk_super) > 0) {
|
||||
fs_info->data_alloc_profile = BTRFS_BLOCK_GROUP_RAID0;
|
||||
fs_info->metadata_alloc_profile = BTRFS_BLOCK_GROUP_RAID1;
|
||||
fs_info->system_alloc_profile = BTRFS_BLOCK_GROUP_RAID0;
|
||||
fs_info->data_alloc_profile = BTRFS_BLOCK_GROUP_RAID0 |
|
||||
BTRFS_BLOCK_GROUP_RAID1;
|
||||
fs_info->metadata_alloc_profile = BTRFS_BLOCK_GROUP_RAID1 |
|
||||
BTRFS_BLOCK_GROUP_DUP;
|
||||
fs_info->system_alloc_profile = fs_info->metadata_alloc_profile;
|
||||
}
|
||||
mutex_unlock(&fs_info->fs_mutex);
|
||||
return tree_root;
|
||||
|
||||
Reference in New Issue
Block a user