[DRBD-cvs] drbd by phil; * Implemented the in-kernel-part of on-d...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Mon, 14 Jun 2004 14:54:23 +0200 (CEST)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd
Modified Files:
Tag: rel-0_7-branch
drbd_receiver.c
Log Message:
* Implemented the in-kernel-part of on-disconnect = stand_allone.
* Commented out the "freeze_io" thing for now.
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/drbd_receiver.c,v
retrieving revision 1.97.2.169
retrieving revision 1.97.2.170
diff -u -3 -r1.97.2.169 -r1.97.2.170
--- drbd_receiver.c 8 Jun 2004 12:04:35 -0000 1.97.2.169
+++ drbd_receiver.c 14 Jun 2004 12:54:18 -0000 1.97.2.170
@@ -1637,6 +1637,10 @@
drbdd(mdev);
drbd_disconnect(mdev);
if (get_t_state(thi) == Exiting) break;
+ if(mdev->conf.on_disconnect == DropNetConf) {
+ set_cstate(mdev,StandAlone);
+ break;
+ }
else {
if (signal_pending(current)) {
drbd_flush_signals(current);