Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196839
b: refs/heads/master
c: 8d4ce82
h: refs/heads/master
i:
  196837: e5f1072
  196835: 5000058
  196831: 2bdd173
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed May 17, 2010
1 parent dfc0288 commit 0b41a46
Show file tree
Hide file tree
Showing 3 changed files with 5 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: c3470cde57ea34d9b4bd34891ec040e46b9fb3bf
refs/heads/master: 8d4ce82b3ccd755c8ba401469ced5286b1e02284
3 changes: 3 additions & 0 deletions trunk/drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ static int is_valid_state(struct drbd_conf *mdev, union drbd_state ns)
else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT)
rv = SS_NO_REMOTE_DISK;

else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE)
rv = SS_NO_UP_TO_DATE_DISK;

else if ((ns.conn == C_CONNECTED ||
ns.conn == C_WF_BITMAP_S ||
ns.conn == C_SYNC_SOURCE ||
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/block/drbd/drbd_strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static const char *drbd_disk_s_names[] = {

static const char *drbd_state_sw_errors[] = {
[-SS_TWO_PRIMARIES] = "Multiple primaries not allowed by config",
[-SS_NO_UP_TO_DATE_DISK] = "Refusing to be Primary without at least one UpToDate disk",
[-SS_NO_UP_TO_DATE_DISK] = "Need access to UpToDate data",
[-SS_NO_LOCAL_DISK] = "Can not resync without local disk",
[-SS_NO_REMOTE_DISK] = "Can not resync without remote disk",
[-SS_CONNECTED_OUTDATES] = "Refusing to be Outdated while Connected",
Expand Down

0 comments on commit 0b41a46

Please sign in to comment.