Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32233
b: refs/heads/master
c: 31b65a0
h: refs/heads/master
i:
  32231: bbbb3eb
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jul 10, 2006
1 parent 71abcf1 commit 4e4cb0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4370781d83cd2e52eb515e4663155e8091e4d4e
refs/heads/master: 31b65a0d3894566191b91fbadd122c354a363b5d
6 changes: 5 additions & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,11 @@ static int super_1_load(mdk_rdev_t *rdev, mdk_rdev_t *refdev, int minor_version)
if (rdev->sb_size & bmask)
rdev-> sb_size = (rdev->sb_size | bmask)+1;

if (sb->level == cpu_to_le32(LEVEL_MULTIPATH))
rdev->desc_nr = -1;
else
rdev->desc_nr = le32_to_cpu(sb->dev_number);

if (refdev == 0)
ret = 1;
else {
Expand Down Expand Up @@ -1171,7 +1176,6 @@ static int super_1_validate(mddev_t *mddev, mdk_rdev_t *rdev)
}
if (mddev->level != LEVEL_MULTIPATH) {
int role;
rdev->desc_nr = le32_to_cpu(sb->dev_number);
role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]);
switch(role) {
case 0xffff: /* spare */
Expand Down

0 comments on commit 4e4cb0a

Please sign in to comment.