From 682f676eb38fe10e3335225c27dbae2291d138e9 Mon Sep 17 00:00:00 2001 From: Boris Burkov Date: Thu, 14 Mar 2024 16:19:00 -0700 Subject: [PATCH] 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 Reviewed-by: Anand Jain Signed-off-by: Boris Burkov Signed-off-by: David Sterba --- kernel-shared/send.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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