Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a492166 authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbdsetup X resume-io should be usable to resume IO [Bugz 256]



When IO gets frozen due to a broken fence-peer script, the user
should be able to thaw IO by the resume-io command.

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 1352994b
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -867,9 +867,8 @@ static union drbd_state sanitize_state(struct drbd_conf *mdev, union drbd_state
	}
	}


	if (fp == FP_STONITH &&
	if (fp == FP_STONITH &&
	    (ns.role == R_PRIMARY &&
	    (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) &&
	     ns.conn < C_CONNECTED &&
	    !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED))
	     ns.pdsk > D_OUTDATED))
		ns.susp = 1;
		ns.susp = 1;


	if (ns.aftr_isp || ns.peer_isp || ns.user_isp) {
	if (ns.aftr_isp || ns.peer_isp || ns.user_isp) {