linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: add a warning label for RAID5/6
@ 2020-08-25 16:51 Josef Bacik
  2020-08-31 11:13 ` Johannes Thumshirn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Josef Bacik @ 2020-08-25 16:51 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

We all know there's some dark and scary corners with RAID5/6, but users
may not know.  Add a warning message in mkfs so anybody trying to use
this will know things can go very wrong.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 mkfs/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mkfs/main.c b/mkfs/main.c
index 0a4de617..0db24ad4 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -1183,6 +1183,8 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
 	if ((data_profile | metadata_profile) &
 	    (BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)) {
 		features |= BTRFS_FEATURE_INCOMPAT_RAID56;
+		warning("RAID5/6 support is still experimental and has known "
+			"issues, do not rely on this for data you care about.\n");
 	}
 
 	if ((data_profile | metadata_profile) &
-- 
2.24.1


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

* Re: [PATCH] btrfs-progs: add a warning label for RAID5/6
  2020-08-25 16:51 [PATCH] btrfs-progs: add a warning label for RAID5/6 Josef Bacik
@ 2020-08-31 11:13 ` Johannes Thumshirn
  2020-09-02  3:41 ` Neal Gompa
  2021-03-03 14:41 ` David Sterba
  2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2020-08-31 11:13 UTC (permalink / raw)
  To: Josef Bacik, linux-btrfs, kernel-team

Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>

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

* Re: [PATCH] btrfs-progs: add a warning label for RAID5/6
  2020-08-25 16:51 [PATCH] btrfs-progs: add a warning label for RAID5/6 Josef Bacik
  2020-08-31 11:13 ` Johannes Thumshirn
@ 2020-09-02  3:41 ` Neal Gompa
  2021-03-03 14:41 ` David Sterba
  2 siblings, 0 replies; 4+ messages in thread
From: Neal Gompa @ 2020-09-02  3:41 UTC (permalink / raw)
  To: Josef Bacik; +Cc: Btrfs BTRFS, kernel-team

On Tue, Aug 25, 2020 at 12:51 PM Josef Bacik <josef@toxicpanda.com> wrote:
>
> We all know there's some dark and scary corners with RAID5/6, but users
> may not know.  Add a warning message in mkfs so anybody trying to use
> this will know things can go very wrong.
>
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>
> ---
>  mkfs/main.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/mkfs/main.c b/mkfs/main.c
> index 0a4de617..0db24ad4 100644
> --- a/mkfs/main.c
> +++ b/mkfs/main.c
> @@ -1183,6 +1183,8 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
>         if ((data_profile | metadata_profile) &
>             (BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)) {
>                 features |= BTRFS_FEATURE_INCOMPAT_RAID56;
> +               warning("RAID5/6 support is still experimental and has known "
> +                       "issues, do not rely on this for data you care about.\n");
>         }
>
>         if ((data_profile | metadata_profile) &
> --
> 2.24.1
>

This looks good to me. It's unfortunate that we need this, though...

Reviewed-by: Neal Gompa <ngompa13@gmail.com>

-- 
真実はいつも一つ!/ Always, there's only one truth!

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

* Re: [PATCH] btrfs-progs: add a warning label for RAID5/6
  2020-08-25 16:51 [PATCH] btrfs-progs: add a warning label for RAID5/6 Josef Bacik
  2020-08-31 11:13 ` Johannes Thumshirn
  2020-09-02  3:41 ` Neal Gompa
@ 2021-03-03 14:41 ` David Sterba
  2 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2021-03-03 14:41 UTC (permalink / raw)
  To: Josef Bacik; +Cc: linux-btrfs, kernel-team

On Tue, Aug 25, 2020 at 12:51:02PM -0400, Josef Bacik wrote:
> We all know there's some dark and scary corners with RAID5/6, but users
> may not know.  Add a warning message in mkfs so anybody trying to use
> this will know things can go very wrong.
> 
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>
> ---
>  mkfs/main.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/mkfs/main.c b/mkfs/main.c
> index 0a4de617..0db24ad4 100644
> --- a/mkfs/main.c
> +++ b/mkfs/main.c
> @@ -1183,6 +1183,8 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
>  	if ((data_profile | metadata_profile) &
>  	    (BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)) {
>  		features |= BTRFS_FEATURE_INCOMPAT_RAID56;
> +		warning("RAID5/6 support is still experimental and has known "
> +			"issues, do not rely on this for data you care about.\n");

I've reworded the message, calling it experimental after so many years
is a bit kappa. Also we'll need something in the docs for reference,
I'll write something.

>  	}
>  
>  	if ((data_profile | metadata_profile) &
> -- 
> 2.24.1

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

end of thread, other threads:[~2021-03-04  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-25 16:51 [PATCH] btrfs-progs: add a warning label for RAID5/6 Josef Bacik
2020-08-31 11:13 ` Johannes Thumshirn
2020-09-02  3:41 ` Neal Gompa
2021-03-03 14:41 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).