All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG
@ 2024-03-14 23:19 Boris Burkov
  2024-03-15  4:46 ` Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Boris Burkov @ 2024-03-14 23:19 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

not sure exactly how this ifdef was supposed to work originally, but it
currently doesn't and I don't see other use cases of this pattern.

Use EXPERIMENTAL which does work after:

        ./configure --enable-experimental

Signed-off-by: Boris Burkov <boris@bur.io>
---
 kernel-shared/send.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel-shared/send.h b/kernel-shared/send.h
index 34de60ff0..ce4a99e31 100644
--- a/kernel-shared/send.h
+++ b/kernel-shared/send.h
@@ -25,7 +25,7 @@
 
 #define BTRFS_SEND_STREAM_MAGIC "btrfs-stream"
 /* Conditional support for the upcoming protocol version. */
-#ifdef CONFIG_BTRFS_DEBUG
+#if EXPERIMENTAL
 #define BTRFS_SEND_STREAM_VERSION 3
 #else
 #define BTRFS_SEND_STREAM_VERSION 2
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG
  2024-03-14 23:19 [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG Boris Burkov
@ 2024-03-15  4:46 ` Qu Wenruo
  2024-03-15 10:10 ` Anand Jain
  2024-03-18 22:17 ` David Sterba
  2 siblings, 0 replies; 6+ messages in thread
From: Qu Wenruo @ 2024-03-15  4:46 UTC (permalink / raw)
  To: Boris Burkov, linux-btrfs, kernel-team



在 2024/3/15 09:49, Boris Burkov 写道:
> not sure exactly how this ifdef was supposed to work originally, but it
> currently doesn't and I don't see other use cases of this pattern.
>
> Use EXPERIMENTAL which does work after:
>
>          ./configure --enable-experimental
>
> Signed-off-by: Boris Burkov <boris@bur.io>

Reviewed-by: Qu Wenruo <wqu@suse.com>

This seems to be a direct sync between kernel and btrfs-progs, thus we
got the kernel macro not properly translated.

Thanks,
Qu

> ---
>   kernel-shared/send.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel-shared/send.h b/kernel-shared/send.h
> index 34de60ff0..ce4a99e31 100644
> --- a/kernel-shared/send.h
> +++ b/kernel-shared/send.h
> @@ -25,7 +25,7 @@
>
>   #define BTRFS_SEND_STREAM_MAGIC "btrfs-stream"
>   /* Conditional support for the upcoming protocol version. */
> -#ifdef CONFIG_BTRFS_DEBUG
> +#if EXPERIMENTAL
>   #define BTRFS_SEND_STREAM_VERSION 3
>   #else
>   #define BTRFS_SEND_STREAM_VERSION 2

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG
  2024-03-14 23:19 [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG Boris Burkov
  2024-03-15  4:46 ` Qu Wenruo
@ 2024-03-15 10:10 ` Anand Jain
  2024-03-18 22:17 ` David Sterba
  2 siblings, 0 replies; 6+ messages in thread
From: Anand Jain @ 2024-03-15 10:10 UTC (permalink / raw)
  To: Boris Burkov, linux-btrfs, kernel-team




On 3/15/24 04:49, Boris Burkov wrote:
> not sure exactly how this ifdef was supposed to work originally, but it
> currently doesn't and I don't see other use cases of this pattern.
> 
> Use EXPERIMENTAL which does work after:
> 

Reviewed-by: Anand Jain <anand.jain@oracle.com>

Thanks.
>          ./configure --enable-experimental
> 
> Signed-off-by: Boris Burkov <boris@bur.io>
> ---
>   kernel-shared/send.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel-shared/send.h b/kernel-shared/send.h
> index 34de60ff0..ce4a99e31 100644
> --- a/kernel-shared/send.h
> +++ b/kernel-shared/send.h
> @@ -25,7 +25,7 @@
>   
>   #define BTRFS_SEND_STREAM_MAGIC "btrfs-stream"
>   /* Conditional support for the upcoming protocol version. */
> -#ifdef CONFIG_BTRFS_DEBUG
> +#if EXPERIMENTAL
>   #define BTRFS_SEND_STREAM_VERSION 3
>   #else
>   #define BTRFS_SEND_STREAM_VERSION 2


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG
  2024-03-14 23:19 [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG Boris Burkov
  2024-03-15  4:46 ` Qu Wenruo
  2024-03-15 10:10 ` Anand Jain
@ 2024-03-18 22:17 ` David Sterba
  2024-03-19  0:07   ` Qu Wenruo
  2 siblings, 1 reply; 6+ messages in thread
From: David Sterba @ 2024-03-18 22:17 UTC (permalink / raw)
  To: Boris Burkov; +Cc: linux-btrfs, kernel-team

On Thu, Mar 14, 2024 at 04:19:00PM -0700, Boris Burkov wrote:
> not sure exactly how this ifdef was supposed to work originally, but it
> currently doesn't and I don't see other use cases of this pattern.
> 
> Use EXPERIMENTAL which does work after:

Ok, makes sense. I missed that because I searched for EXPERIMENTAL and
did not find anything relevant but CONFIG_BTRFS_DEBUG has an effect.
I'll add a comment so it does not get accidentally changed back when
syncin the kernel code. Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG
  2024-03-18 22:17 ` David Sterba
@ 2024-03-19  0:07   ` Qu Wenruo
  2024-03-19 16:50     ` David Sterba
  0 siblings, 1 reply; 6+ messages in thread
From: Qu Wenruo @ 2024-03-19  0:07 UTC (permalink / raw)
  To: dsterba, Boris Burkov; +Cc: linux-btrfs, kernel-team



在 2024/3/19 08:47, David Sterba 写道:
> On Thu, Mar 14, 2024 at 04:19:00PM -0700, Boris Burkov wrote:
>> not sure exactly how this ifdef was supposed to work originally, but it
>> currently doesn't and I don't see other use cases of this pattern.
>>
>> Use EXPERIMENTAL which does work after:
>
> Ok, makes sense. I missed that because I searched for EXPERIMENTAL and
> did not find anything relevant but CONFIG_BTRFS_DEBUG has an effect.
> I'll add a comment so it does not get accidentally changed back when
> syncin the kernel code. Thanks.
>
Can't we just convert CONFIG_BTRFS_DEBUG to EXPERIMENTAL in kerncompat.h?

Thanks,
Qu

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG
  2024-03-19  0:07   ` Qu Wenruo
@ 2024-03-19 16:50     ` David Sterba
  0 siblings, 0 replies; 6+ messages in thread
From: David Sterba @ 2024-03-19 16:50 UTC (permalink / raw)
  To: Qu Wenruo; +Cc: dsterba, Boris Burkov, linux-btrfs, kernel-team

On Tue, Mar 19, 2024 at 10:37:40AM +1030, Qu Wenruo wrote:
> 
> 
> 在 2024/3/19 08:47, David Sterba 写道:
> > On Thu, Mar 14, 2024 at 04:19:00PM -0700, Boris Burkov wrote:
> >> not sure exactly how this ifdef was supposed to work originally, but it
> >> currently doesn't and I don't see other use cases of this pattern.
> >>
> >> Use EXPERIMENTAL which does work after:
> >
> > Ok, makes sense. I missed that because I searched for EXPERIMENTAL and
> > did not find anything relevant but CONFIG_BTRFS_DEBUG has an effect.
> > I'll add a comment so it does not get accidentally changed back when
> > syncin the kernel code. Thanks.
> >
> Can't we just convert CONFIG_BTRFS_DEBUG to EXPERIMENTAL in kerncompat.h?

In principle yes, but the code from kernel and user space is not close
enough so that would be safe so this needs an audit what could break.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-19 16:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-14 23:19 [PATCH] btrfs-progs: use EXPERIMENTAL instead of CONFIG_BTRFS_DEBUG Boris Burkov
2024-03-15  4:46 ` Qu Wenruo
2024-03-15 10:10 ` Anand Jain
2024-03-18 22:17 ` David Sterba
2024-03-19  0:07   ` Qu Wenruo
2024-03-19 16:50     ` David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.