Btrfs-prog/send: fix wrong best-parent assignment in, find_good_parent()
authorChen Yang <chenyang.fnst@cn.fujitsu.com>
Thu, 24 Jan 2013 11:53:40 +0000 (19:53 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 25 Jan 2013 10:50:51 +0000 (11:50 +0100)
commitaf7c373fdf08c2345acf319223b2edba41f977b6
treecbd7a89504509a8dfca1835ece5922fa790422a9
parentc11d32446ddba1f7cd597859aba0c58c4fd7c1c1
Btrfs-prog/send: fix wrong best-parent assignment in, find_good_parent()

We use find_good_parent() to look for a suit snapshot in the clone source
snapshots as the parent, not the source subvolume of the snapshot which
is about to be sent. fix it

Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Cheng Yang <chenyang.fnst@cn.fujitsu.com>
cmds-send.c