btrfs-progs: Fix the receive code pathing
authorAlex Lyakas <alex.btrfs@zadarastorage.com>
Tue, 9 Apr 2013 17:08:45 +0000 (19:08 +0200)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:25 +0000 (18:56 +0200)
commit6712828275631b6b627ce97be042c93f4a4aa6c5
treeced693b0345cab35074b0a03b528bb540a8ffc93
parent913372adbd2049b948f2930515ecc131b100c6ea
btrfs-progs: Fix the receive code pathing

The receive code was not distinguishing properly between the mount root
and the directory to create the received subvolume in.
Also make sure the find_mount_root reports an error if it cannot find
a match at all.

Reported-by: Robert Buhren <robert@robertbuhren.de>
Reported-by: Rory Campbell-Lange <rory@campbell-lange.net>
Reported-by: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
Signed-off-by: Alex Lyakas <alex.btrfs@zadarastorage.com>
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
cmds-receive.c
cmds-send.c