On Sun, Jan 06, 2013 at 04:32:11PM +0100, Florian Albrechtskirchinger wrote: > Add the following switches to mkfs.btrfs and update man page: > * -U UUID, --uuid UUID > > Add the following switches to btrfs-convert: > * -U UUID > * -U new > Generates a random UUID (default behavior). > * -U copy > Copies the UUID from the ext2fs. Can you please enhance it with a check that the UUID is not duplicate among other filesystems? It should be available throgh libblkid: blkid_probe_lookup_value(probe, "UUID", &uuid, NULL); This is a sort of paranoia check with the generated UUID, but I think that an accidentally repeated command or copy&paste with an existing uuid can happen. thanks, david -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
