Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360743
b: refs/heads/master
c: f96c9f3
h: refs/heads/master
i:
  360741: 34c088f
  360739: 0537315
  360735: c866daf
v: v3
  • Loading branch information
NeilBrown committed Feb 26, 2013
1 parent 621b8c5 commit 1ef05a6
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 58ebb34c49fcfcaa029e4b1c1453d92583900f9a
refs/heads/master: f96c9f305c24a0d4a075e2c75aa6b417aa238687
8 changes: 7 additions & 1 deletion trunk/drivers/md/raid0.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@ static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf)
rdev1->new_raid_disk = j;
}

if (j < 0 || j >= mddev->raid_disks) {
if (j < 0) {
printk(KERN_ERR
"md/raid0:%s: remove inactive devices before converting to RAID0\n",
mdname(mddev));
goto abort;
}
if (j >= mddev->raid_disks) {
printk(KERN_ERR "md/raid0:%s: bad disk number %d - "
"aborting!\n", mdname(mddev), j);
goto abort;
Expand Down

0 comments on commit 1ef05a6

Please sign in to comment.