Song Liu <songliubraving@xxxxxx> 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 <songliubraving@xxxxxx> > --- > Manage.c | 26 ++++++++++++++++++++++++++ > ReadMe.c | 1 + > mdadm.c | 9 ++++++++- > mdadm.h | 3 +++ > 4 files changed, 38 insertions(+), 1 deletion(-) Applied! Thanks, Jes -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html