X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=Assemble.c;fp=Assemble.c;h=9f75c68c9d49b9b2a9a7daf8201e1a6de4a71657;hb=563ac108659980b3d1e226fe416254a86656235f;hp=f39c9e1cdf9c37dc5158937e00f329ac86ed79c7;hpb=d7a1fda2769ba272d89de6caeab35d52b73a9c3c;p=thirdparty%2Fmdadm.git diff --git a/Assemble.c b/Assemble.c index f39c9e1c..9f75c68c 100644 --- a/Assemble.c +++ b/Assemble.c @@ -578,6 +578,7 @@ static int load_devices(struct devs *devices, char *devmap, struct supertype *tst; int i; int dfd; + int disk_state; if (tmpdev->used != 1) continue; @@ -711,7 +712,9 @@ static int load_devices(struct devs *devices, char *devmap, devices[devcnt].i.disk.major = major(stb.st_rdev); devices[devcnt].i.disk.minor = minor(stb.st_rdev); - if (devices[devcnt].i.disk.state == 6) { + disk_state = devices[devcnt].i.disk.state & ~((1< devices[most_recent].i.events) {