diff options
author | NeilBrown <[email protected]> | 2017-10-17 14:24:09 +1100 |
---|---|---|
committer | Shaohua Li <[email protected]> | 2017-11-01 21:32:18 -0700 |
commit | 230b55fa8d64007339319539f8f8e68114d08529 (patch) | |
tree | a92153407e424000f93384e987a4dc0ffa77dfe0 /net/unix/sysctl_net_unix.c | |
parent | 235b6003fb28f0dd8e7ed8fbdb088bb548291766 (diff) |
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: [email protected] (4.10+)
Signed-off-by: NeilBrown <[email protected]>
Tested-by: Joshua Kinard <[email protected]>
Acked-by: Joshua Kinard <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions