path: root/btrfs-convert.c
diff options
authorEric Sandeen <>2014-05-14 12:39:07 -0500
committerDavid Sterba <>2014-08-22 14:39:32 +0200
commit85691ebeac9432b4ebb1a268514279a0b2c7c61d (patch)
tree463b954a6cede5d8bb0d8c6a825afbd030aec4a0 /btrfs-convert.c
parente2a157f380aa33a264eab8e21280ea8bbc10d67e (diff)
btrfs-progs: mkfs: allow UUID specification at mkfs time
Allow the specification of the filesystem UUID at mkfs time. Non-unique unique IDs are rejected. This includes attempting to re-mkfs with the same UUID; if you really want to do that, you can mkfs with a new UUID, then re-mkfs with the one you wanted. (Implemented only for mkfs.btrfs, not btrfs-convert). Signed-off-by: Eric Sandeen <> [converted help to asciidoc] Signed-off-by: David Sterba <>
Diffstat (limited to 'btrfs-convert.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-convert.c b/btrfs-convert.c
index a8b2c514..d62d4f81 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -2240,7 +2240,7 @@ static int do_convert(const char *devname, int datacsum, int packing,
goto fail;
ret = make_btrfs(fd, devname, ext2_fs->super->s_volume_name,
- blocks, total_bytes, blocksize, blocksize,
+ NULL, blocks, total_bytes, blocksize, blocksize,
blocksize, blocksize, 0);
if (ret) {
fprintf(stderr, "unable to create initial ctree: %s\n",