btrfs-progs: add strdup in btrfs_add_to_fsid() to track the device path
authorGoffredo Baroncelli <kreijack@gmail.com>
Wed, 17 Dec 2014 20:14:08 +0000 (21:14 +0100)
committerDavid Sterba <dsterba@suse.cz>
Mon, 8 Jun 2015 15:50:46 +0000 (17:50 +0200)
commitb96345c7ff452fe0b37a503d16072fdebf96d2fd
treec0a64b64c3cad503262208e204bfcdeb68d8a273
parent1bcedaae799d117957e36f8ffddc0d9d84274c2d
btrfs-progs: add strdup in btrfs_add_to_fsid() to track the device path

When creating a new btrfs_device, copy the path to track it.  This path
is then used by mkfs.btrfs to list all devices.

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>
utils.c