From: NeilBrown Date: Tue, 17 Nov 2009 01:31:12 +0000 (+1100) Subject: Replace all relevant occurrences of -4 with LEVEL_MULTIPATH X-Git-Tag: mdadm-3.1.1~10 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=df0d4ea04e34fc5d499056b00fa1e0a25f21453e;ds=sidebyside Replace all relevant occurrences of -4 with LEVEL_MULTIPATH Also -1 -> LEVEL_LINEAR. Signed-off-by: NeilBrown --- 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<= 1; - case -1: + case LEVEL_LINEAR: case 0: return avail_disks == raid_disks; case 1: