]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Assemble: mask FAILFAST and WRITEMOSTLY flags when finding the most recent device
authorGioh Kim <gi-oh.kim@cloud.ionos.com>
Tue, 6 Nov 2018 15:20:17 +0000 (16:20 +0100)
committerJes Sorensen <jsorensen@fb.com>
Thu, 6 Dec 2018 12:52:08 +0000 (07:52 -0500)
commit563ac108659980b3d1e226fe416254a86656235f
tree035da518cb5ed9f29974c162e7cbd493c267a621
parentd7a1fda2769ba272d89de6caeab35d52b73a9c3c
Assemble: mask FAILFAST and WRITEMOSTLY flags when finding the most recent device

If devices[].i.disk.state has MD_DISK_FAILFAST or MD_DISK_WRITEMOSTLY
flag, it cannot be the most recent device. Both flags should be masked
before checking the state.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Gioh Kim <gi-oh.kim@cloud.ionos.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Assemble.c