Omar Sandoval
4a714918f0
btrfs-progs: receive: get rid of unnecessary strdup()
...
In process_clone(), we're not checking the return value of strdup().
But, there's no reason to strdup() in the first place: we just pass the
path into path_cat_out(). Get rid of the strdup().
Fixes: f1c24cd80d
("Btrfs-progs: add btrfs send/receive commands")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-26 17:46:42 +02:00
David Sterba
f83e81c61b
btrfs-progs: utils: split path related utils to own file
...
Group helpers that return some status of a given path to own file so we
debloat utils.c a bit.
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-04 02:06:31 +02:00
David Sterba
94fced6353
btrfs-progs: build: drop kernel-lib from -I and update paths
...
Include the files by full path to avoid any confusion in case of
potentially duplicate names.
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-03 20:49:04 +02:00
David Sterba
c07960c8be
btrfs-progs: move utils.[ch] to common/
...
Update include paths and remove some duplicates.
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-03 20:49:04 +02:00
David Sterba
aac564aca6
btrfs-progs: move commonh to common/
...
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-03 20:49:03 +02:00
David Sterba
f93b471143
btrfs-progs: move help.[ch] to common/
...
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-03 20:49:03 +02:00
David Sterba
fd88267f71
btrfs-progs: move cmds-receive.c to cmds/
...
Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-03 20:49:02 +02:00