restore: Split output directory and btrfs-local path search_dir() parameters
authorPeter Stuge <peter@stuge.se>
Tue, 12 Mar 2013 17:38:12 +0000 (13:38 -0400)
committerDavid Sterba <dsterba@suse.cz>
Mon, 18 Mar 2013 17:14:19 +0000 (18:14 +0100)
commit4ddd5874d9800f7f2d34366b00b338f9a2476836
tree9935515e7d22561451562eb133910a94bb3aa8bf
parentc2839e123a22a51db62981ca077ea0d88ea5e8b1
restore: Split output directory and btrfs-local path search_dir() parameters

search_dir() recurses down the btrfs tree, and used to take the output
path for every item (i.e. in the running system, output root directory
concatenated with btrfs-local pathname) passed as the only path
parameter. Moving the output root directory to a separate parameter
and passing the btrfs-local pathname for each file and directory
separately allows easy filtering based on the btrfs-local pathname.

Signed-off-by: Peter Stuge <peter@stuge.se>
Signed-off-by: Josef Bacik <josef@redhat.com>
cmds-restore.c