aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Burkov <boris@bur.io>2024-03-14 16:19:00 -0700
committerDavid Sterba <dsterba@suse.com>2024-03-18 23:19:52 +0100
commit682f676eb38fe10e3335225c27dbae2291d138e9 (patch)
tree5a2297141c09bf91699b6427edaa2da5dd23425d
parent640c4cc3f4902489ce206668499ebc4affbf69ae (diff)
downloadbtrfs-progs-682f676eb38fe10e3335225c27dbae2291d138e9.tar.gz
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>
-rw-r--r--kernel-shared/send.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel-shared/send.h b/kernel-shared/send.h
index 34de60ff..c6d0fd6d 100644
--- a/kernel-shared/send.h
+++ b/kernel-shared/send.h
@@ -25,7 +25,11 @@
#define BTRFS_SEND_STREAM_MAGIC "btrfs-stream"
/* Conditional support for the upcoming protocol version. */
-#ifdef CONFIG_BTRFS_DEBUG
+/*
+ * Note: this is CONFIG_BTRFS_DEBUG in kernel but for btrfs-progs it must be
+ * enabled in experimental mode.
+ */
+#if EXPERIMENTAL
#define BTRFS_SEND_STREAM_VERSION 3
#else
#define BTRFS_SEND_STREAM_VERSION 2