Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115081
b: refs/heads/master
c: 80268ee
h: refs/heads/master
i:
  115079: c8c4799
v: v3
  • Loading branch information
NeilBrown committed Oct 13, 2008
1 parent e2e4a48 commit 4876075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ea43ddd8491feccf36267349748ea91b1194481e
refs/heads/master: 80268ee9270ebe4847365a7426de91d179e870d0
4 changes: 2 additions & 2 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2725,9 +2725,9 @@ array_state_store(mddev_t *mddev, const char *buf, size_t len)
break;
case read_auto:
if (mddev->pers) {
if (mddev->ro != 1)
if (mddev->ro == 0)
err = do_md_stop(mddev, 1, 0);
else
else if (mddev->ro == 1)
err = restart_array(mddev);
if (err == 0) {
mddev->ro = 2;
Expand Down

0 comments on commit 4876075

Please sign in to comment.