diff options
author | NeilBrown <neilb@suse.de> | 2009-11-17 12:31:12 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-11-17 12:31:12 +1100 |
commit | df0d4ea04e34fc5d499056b00fa1e0a25f21453e (patch) | |
tree | d8a0678434b8b9cfc2e1521956237ec2427ea473 /Assemble.c | |
parent | 672ca1b7272c69ea3055aeb746a77b8408e5f3ed (diff) | |
download | mdadm-df0d4ea04e34fc5d499056b00fa1e0a25f21453e.tar.gz mdadm-df0d4ea04e34fc5d499056b00fa1e0a25f21453e.tar.xz mdadm-df0d4ea04e34fc5d499056b00fa1e0a25f21453e.zip |
Replace all relevant occurrences of -4 with LEVEL_MULTIPATH
Also -1 -> LEVEL_LINEAR.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r-- | Assemble.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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<<MD_DISK_ACTIVE))) { if (!(devices[j].i.disk.state & (1<<MD_DISK_FAULTY))) |