Hi, I've found a case that failfast option of mdadm set a disk faulty wrongly. Following is my test case. mdadm --create /dev/md100 -l 1 --failfast -e 1.2 -n 2 /dev/vdb /dev/vdc mdadm /dev/md100 -a --failfast /dev/vdd If I use failfast option, the vdd disk was faulty wrongly. If not, it was spare. This patch fixes a corner case for setting device role and prints device role if it's faulty. This patch is based on "mdadm - v4.0-8-g72b616a - 2017-03-07". Gioh Kim (1): super1: ignore failfast flag for setting device role Jack Wang (1): super1: check and output faulty dev role super1.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) -- 2.5.0 -- 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