summaryrefslogtreecommitdiff
path: root/convert/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'convert/common.c')
-rw-r--r--convert/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/convert/common.c b/convert/common.c
index a9b2404..04b5901 100644
--- a/convert/common.c
+++ b/convert/common.c
@@ -107,9 +107,11 @@ static int setup_temp_super(int fd, struct btrfs_mkfs_config *cfg,
ret = -EINVAL;
goto out;
}
+ uuid_copy(super->metadata_uuid, super->fsid);
} else {
uuid_generate(super->fsid);
uuid_unparse(super->fsid, cfg->fs_uuid);
+ uuid_copy(super->metadata_uuid, super->fsid);
}
uuid_generate(chunk_uuid);
uuid_unparse(chunk_uuid, cfg->chunk_uuid);