diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-03-25 10:11:30 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:44:57 -0500 |
commit | 435693e89b7a918b14ea67968971a2d8d9e88df2 (patch) | |
tree | be2d9272bec975aef6b2392eb4a967ffdda2dcb0 /drivers/block/drbd/drbd_state.h | |
parent | 88ef594ed7367a76e53f4a33b3d866f4dfb1d4ff (diff) |
drbd: Print common state changes of all volumes as connection state changes
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_state.h')
-rw-r--r-- | drivers/block/drbd/drbd_state.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/block/drbd/drbd_state.h b/drivers/block/drbd/drbd_state.h index 394a1998acd9..11fd0f897bdb 100644 --- a/drivers/block/drbd/drbd_state.h +++ b/drivers/block/drbd/drbd_state.h | |||
@@ -57,13 +57,18 @@ struct drbd_tconn; | |||
57 | __ns.T2 = (S2); __ns.T3 = (S3); __ns; }) | 57 | __ns.T2 = (S2); __ns.T3 = (S3); __ns; }) |
58 | 58 | ||
59 | enum chg_state_flags { | 59 | enum chg_state_flags { |
60 | CS_HARD = 1, | 60 | CS_HARD = 1 << 0, |
61 | CS_VERBOSE = 2, | 61 | CS_VERBOSE = 1 << 1, |
62 | CS_WAIT_COMPLETE = 4, | 62 | CS_WAIT_COMPLETE = 1 << 2, |
63 | CS_SERIALIZE = 8, | 63 | CS_SERIALIZE = 1 << 3, |
64 | CS_ORDERED = CS_WAIT_COMPLETE + CS_SERIALIZE, | 64 | CS_ORDERED = CS_WAIT_COMPLETE + CS_SERIALIZE, |
65 | CS_NO_CSTATE_CHG = 16, /* Do not display changes in cstate. Internal to drbd_state.c */ | 65 | CS_LOCAL_ONLY = 1 << 4, /* Do not consider a device pair wide state change */ |
66 | CS_LOCAL_ONLY = 32, /* Do not consider a device pair wide state change */ | 66 | CS_DC_ROLE = 1 << 5, /* DC = display as connection state change */ |
67 | CS_DC_PEER = 1 << 6, | ||
68 | CS_DC_CONN = 1 << 7, | ||
69 | CS_DC_DISK = 1 << 8, | ||
70 | CS_DC_PDSK = 1 << 9, | ||
71 | CS_DC_MASK = CS_DC_ROLE + CS_DC_PEER + CS_DC_CONN + CS_DC_DISK + CS_DC_PDSK, | ||
67 | }; | 72 | }; |
68 | 73 | ||
69 | extern enum drbd_state_rv drbd_change_state(struct drbd_conf *mdev, | 74 | extern enum drbd_state_rv drbd_change_state(struct drbd_conf *mdev, |