Skip to content
Commit 230b55fa authored by NeilBrown's avatar NeilBrown Committed by Shaohua Li
Browse files

md: forbid a RAID5 from having both a bitmap and a journal.



Having both a bitmap and a journal is pointless.
Attempting to do so can corrupt the bitmap if the journal
replay happens before the bitmap is initialized.
Rather than try to avoid this corruption, simply
refuse to allow arrays with both a bitmap and a journal.
So:
 - if raid5_run sees both are present, fail.
 - if adding a bitmap finds a journal is present, fail
 - if adding a journal finds a bitmap is present, fail.

Cc: stable@vger.kernel.org (4.10+)
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Tested-by: default avatarJoshua Kinard <kumba@gentoo.org>
Acked-by: default avatarJoshua Kinard <kumba@gentoo.org>
Signed-off-by: default avatarShaohua Li <shli@fb.com>
parent 235b6003
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment