Btrfs-progs: make send/receive compatible with older kernels
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Thu, 9 Jan 2014 10:52:38 +0000 (18:52 +0800)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:30 +0000 (08:22 -0800)
commit83ccf085099d5e300b47b0661eda68d3bad034e6
tree51e0b2e399fd44593c1cbb7f8d7332915bc42f01
parentcf822f5dbaddb02a6e9a9b25e5979195f935f02e
Btrfs-progs: make send/receive compatible with older kernels

Some users complaint that with latest btrfs-progs, they will
fail to use send/receive. The problem is new tool will try
to use uuid tree while it dosen't work on older kernel.

Now we first check if we support uuid tree, if not we fall into
normal search as previous way.i copy most of codes from Alexander
Block's previous codes and did some adjustments to make it work.

Signed-off-by: Alexander Block <ablock84@googlemail.com>
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
send-utils.c
send-utils.h