From 85691ebeac9432b4ebb1a268514279a0b2c7c61d Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Wed, 14 May 2014 12:39:07 -0500 Subject: 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 --- btrfs-convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'btrfs-convert.c') 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", -- cgit v1.2.3