mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-05 18:28:24 +00:00
btrfs-progs: mkfs: precreate the uuid tree
We can easily create the uuid tree that's usually created after first mount. The kernel will still check the tree on first mount so we don't try to fake the uuid tree generation so it appears consistent, even if it's empty. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
a4cd4ae0b3
commit
2a496a5b8b
@ -1208,6 +1208,11 @@ raid_groups:
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = create_tree(trans, root, BTRFS_UUID_TREE_OBJECTID);
|
||||
if (ret)
|
||||
warning(
|
||||
"unable to create uuid tree, will be created after mount: %d", ret);
|
||||
|
||||
ret = btrfs_commit_transaction(trans, root);
|
||||
if (ret) {
|
||||
error("unable to commit transaction: %d", ret);
|
||||
|
Loading…
Reference in New Issue
Block a user