btrfs-progs: return the fsid from make_btrfs()
authorGoffredo Baroncelli <kreijack@gmail.com>
Wed, 17 Dec 2014 20:14:09 +0000 (21:14 +0100)
committerDavid Sterba <dsterba@suse.cz>
Mon, 8 Jun 2015 15:50:46 +0000 (17:50 +0200)
commitf8a0b85e382ed0f76fd67f65ba5c5697a8468525
tree3266ce0d837bad7e49c92f5a6b4e3b92d4ba8078
parentb96345c7ff452fe0b37a503d16072fdebf96d2fd
btrfs-progs: return the fsid from make_btrfs()

The function make_btrfs() has as argument the fsid of the filesystem.
If this fsid is empty or null make_btrfs() generates a new fsid. However
If the buffer is valid (but the string is empty) the generated fsid is
copied back to the caller.

Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it>
Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
mkfs.c
utils.c