mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-26 23:10:50 +00:00
btrfs-progs: mkfs: add a warning label for RAID5/6
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. Issue: #265 Signed-off-by: Josef Bacik <josef@toxicpanda.com> [ reword message ] Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
b127845f9c
commit
73487311e9
@ -1201,6 +1201,8 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
|
|||||||
if ((data_profile | metadata_profile) &
|
if ((data_profile | metadata_profile) &
|
||||||
(BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)) {
|
(BTRFS_BLOCK_GROUP_RAID5 | BTRFS_BLOCK_GROUP_RAID6)) {
|
||||||
features |= BTRFS_FEATURE_INCOMPAT_RAID56;
|
features |= BTRFS_FEATURE_INCOMPAT_RAID56;
|
||||||
|
warning("RAID5/6 support has known problems is strongly discouraged\n"
|
||||||
|
"\t to be used besides testing or evaluation.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((data_profile | metadata_profile) &
|
if ((data_profile | metadata_profile) &
|
||||||
|
Loading…
Reference in New Issue
Block a user