Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5565
b: refs/heads/master
c: b158156
h: refs/heads/master
i:
  5563: d82458b
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Aug 2, 2005
1 parent e0a0b8d commit d8dcd5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57ee67af35183c60e924ebb6d6b3e1d2d9c03366
refs/heads/master: b1581566183f310abbd2d384a9079d4039faca05
1 change: 1 addition & 0 deletions trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,7 @@ static int run (mddev_t *mddev)

/* device size must be a multiple of chunk size */
mddev->size &= ~(mddev->chunk_size/1024 -1);
mddev->resync_max_sectors = mddev->size << 1;

if (!conf->chunk_size || conf->chunk_size % 4) {
printk(KERN_ERR "raid5: invalid chunk size %d for %s\n",
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/md/raid6main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,7 @@ static int run (mddev_t *mddev)

/* device size must be a multiple of chunk size */
mddev->size &= ~(mddev->chunk_size/1024 -1);
mddev->resync_max_sectors = mddev->size << 1;

if (conf->raid_disks < 4) {
printk(KERN_ERR "raid6: not enough configured devices for %s (%d, minimum 4)\n",
Expand Down

0 comments on commit d8dcd5c

Please sign in to comment.