Song Liu [off-list ref] writes:
When journal device of an array fails, the array is forced into read-only
mode. To make the array normal without adding another journal device, we
need to remove journal _feature_ from the array.
This patch is the mdadm part of removing journal feature for an array with
failed or missing journal.
Two flags are added to GET_ARRAY_INFO:
1. MD_SB_HAS_JOURNAL: meaning the array have journal feature;
2. MD_SB_JOURNAL_REMOVABLE: meaning the journal is faulty or missing
When both flags are set, mdadm will use ioctl SET_ARRAY_INFO to clear
MD_SB_HAS_JOURNAL, and thus remove journal feature from the array.
Signed-off-by: Song Liu <redacted>
---
Manage.c | 26 ++++++++++++++++++++++++++
ReadMe.c | 1 +
mdadm.c | 9 ++++++++-
mdadm.h | 3 +++
4 files changed, 38 insertions(+), 1 deletion(-)
Applied!
Thanks,
Jes