btrfs-progs: tests: correctly receive clones to mounted subvol
authorBenedikt Morbach <benedikt.morbach@googlemail.com>
Wed, 22 Feb 2017 23:07:35 +0000 (00:07 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 16 Mar 2017 16:02:44 +0000 (17:02 +0100)
commit8eaf63bc9a7b957c566be23df7c6701a9a5b22a2
tree84a9077c2020452d185c5586e5953acb55080093
parenta5de4d7f45976dc41e2dd619b69a048027386138
btrfs-progs: tests: correctly receive clones to mounted subvol

clone needs to resolve the paths of the involved subvolumes in the target
fs from their UUIDs. When doing so it might need to strip the prefix
that is mounted as the root of the fs from those paths.

It didn't do so correctly when processing the source of "clone" commands

This is a regression test for
    btrfs-progs: receive: handle root subvol path in clone

Signed-off-by: Benedikt Morbach <benedikt.morbach@googlemail.com>
[ copied the fstests version, will be updated later ]
Signed-off-by: David Sterba <dsterba@suse.com>
tests/misc-tests/019-receive-clones-on-munted-subvol/test.sh [new file with mode: 0755]