[PATCH V2] mkfs.btrfs: allow UUID specification at mkfs time

2014-05-14 Thread Eric Sandeen
Allow the specification of the filesystem UUID at mkfs time. Non-unique unique IDs are rejected. (Implemented only for mkfs.btrfs, not btrfs-convert). Signed-off-by: Eric Sandeen sand...@redhat.com --- V2: reject non-unique unique IDs. diff --git a/btrfs-convert.c b/btrfs-convert.c index

Re: [PATCH V2] mkfs.btrfs: allow UUID specification at mkfs time

2014-05-14 Thread David Sterba
Thanks for adding the uuid uniqueness check, that was my major objection for previous patch iterations, http://www.spinics.net/lists/linux-btrfs/msg30572.html we can now use it for convert as well (to generate or copy the uuid). On Wed, May 14, 2014 at 10:35:05AM -0500, Eric Sandeen wrote: @@

Re: [PATCH V2] mkfs.btrfs: allow UUID specification at mkfs time

2014-05-14 Thread Eric Sandeen
On 5/14/14, 11:01 AM, David Sterba wrote: Thanks for adding the uuid uniqueness check, that was my major objection for previous patch iterations, http://www.spinics.net/lists/linux-btrfs/msg30572.html Ah, thanks, I didn't know about that history, I'm sorry. I'm not sure if my

Re: [PATCH V2] mkfs.btrfs: allow UUID specification at mkfs time

2014-05-14 Thread Goffredo Baroncelli
On 05/14/2014 06:01 PM, David Sterba wrote: On Wed, May 14, 2014 at 10:35:05AM -0500, Eric Sandeen wrote: @@ -125,7 +154,19 @@ int make_btrfs(int fd, const char *device, const char *label, memset(super, 0, sizeof(super)); num_bytes = (num_bytes / sectorsize) * sectorsize; -