X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=Assemble.c;h=e1870fc5ab44961654c2d57a6a0d85709da75874;hp=a16cafe2c5be0c5f3cbc327faf8e207e79d2cd3d;hb=df0d4ea04e34fc5d499056b00fa1e0a25f21453e;hpb=672ca1b7272c69ea3055aeb746a77b8408e5f3ed diff --git a/Assemble.c b/Assemble.c index a16cafe2..e1870fc5 100644 --- a/Assemble.c +++ b/Assemble.c @@ -683,7 +683,7 @@ int Assemble(struct supertype *st, char *mddev, > devices[most_recent].i.events) most_recent = devcnt; } - if (content->array.level == -4) + if (content->array.level == LEVEL_MULTIPATH) /* with multipath, the raid_disk from the superblock is meaningless */ i = devcnt; else @@ -776,7 +776,7 @@ int Assemble(struct supertype *st, char *mddev, /* note: we ignore error flags in multipath arrays * as they don't make sense */ - if (content->array.level != -4) + if (content->array.level != LEVEL_MULTIPATH) if (!(devices[j].i.disk.state & (1<