Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139921
b: refs/heads/master
c: 34817e8
h: refs/heads/master
i:
  139919: 2883b2c
v: v3
  • Loading branch information
NeilBrown committed Mar 31, 2009
1 parent c1b5ef1 commit 790b049
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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: 67cc2b8165857ba019920d1f00d64bcc4140075d
refs/heads/master: 34817e8c3948ea20316dfa8fd8947d6d0ee82ba9
17 changes: 10 additions & 7 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2633,9 +2633,9 @@ layout_store(mddev_t *mddev, const char *buf, size_t len)

if (mddev->pers)
return -EBUSY;
if (mddev->reshape_position != MaxSector)
mddev->new_layout = n;
else

mddev->new_layout = n;
if (mddev->reshape_position == MaxSector)
mddev->layout = n;
return len;
}
Expand Down Expand Up @@ -2702,9 +2702,9 @@ chunk_size_store(mddev_t *mddev, const char *buf, size_t len)

if (mddev->pers)
return -EBUSY;
else if (mddev->reshape_position != MaxSector)
mddev->new_chunk = n;
else

mddev->new_chunk = n;
if (mddev->reshape_position == MaxSector)
mddev->chunk_size = n;
return len;
}
Expand Down Expand Up @@ -3831,7 +3831,10 @@ static int do_md_run(mddev_t * mddev)
}
mddev->pers = pers;
spin_unlock(&pers_lock);
mddev->level = pers->level;
if (mddev->level != pers->level) {
mddev->level = pers->level;
mddev->new_level = pers->level;
}
strlcpy(mddev->clevel, pers->name, sizeof(mddev->clevel));

if (pers->level >= 4 && pers->level <= 6)
Expand Down

0 comments on commit 790b049

Please sign in to comment.