提交 325cd4ba 编写于 作者: Z Zheng Yan 提交者: Chris Mason

Btrfs: properly set blocksize when adding new device.

---
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 6527cdbe
......@@ -1079,6 +1079,8 @@ int btrfs_init_new_device(struct btrfs_root *root, char *device_path)
if (ret)
goto out_close_bdev;
set_blocksize(device->bdev, 4096);
total_bytes = btrfs_super_total_bytes(&root->fs_info->super_copy);
btrfs_set_super_total_bytes(&root->fs_info->super_copy,
total_bytes + device->total_bytes);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册