Skip to content

Commit 682f676

Browse files
boryaskdave
authored andcommitted
btrfs-progs: enable send v3 correctly (use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG)
The send v3 protocol is enabled in kernel by a different config option than in btrfs-progs to actually work. Now v3 can be tested when configured and built with --enable-experimental. Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Boris Burkov <boris@bur.io> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 640c4cc commit 682f676

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

kernel-shared/send.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525

2626
#define BTRFS_SEND_STREAM_MAGIC "btrfs-stream"
2727
/* Conditional support for the upcoming protocol version. */
28-
#ifdef CONFIG_BTRFS_DEBUG
28+
/*
29+
* Note: this is CONFIG_BTRFS_DEBUG in kernel but for btrfs-progs it must be
30+
* enabled in experimental mode.
31+
*/
32+
#if EXPERIMENTAL
2933
#define BTRFS_SEND_STREAM_VERSION 3
3034
#else
3135
#define BTRFS_SEND_STREAM_VERSION 2

0 commit comments

Comments
 (0)