Commit 4cee2ee5 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] md: fix multipath assembly bug

In md, there are "level" number and "personality" numbers.  LEVEL_MULTIPATH
is the level number for multipath.  MULTIPATH is the personality number for
multipath.

In one place, we compare the level with a personality ...  bad

This makes it impossible to assemble multipath arrays.
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1eb197e6
......@@ -527,7 +527,7 @@ static int super_90_load(mdk_rdev_t *rdev, mdk_rdev_t *refdev, int minor_version
rdev->preferred_minor = sb->md_minor;
rdev->data_offset = 0;
if (sb->level == MULTIPATH)
if (sb->level == LEVEL_MULTIPATH)
rdev->desc_nr = -1;
else
rdev->desc_nr = sb->this_disk.number;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment