Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] FW: [DRBD-cvs] svn commit by phil - r2453 - in trunk: drbd drbd/linuxuser - * Removed some explicit calls to drbd_thread_ ... funct
@ 2006-09-25 19:44 Graham, Simon
  2006-09-26 14:37 ` Philipp Reisner
  0 siblings, 1 reply; 2+ messages in thread
From: Graham, Simon @ 2006-09-25 19:44 UTC (permalink / raw)
  To: drbd-dev

I think there may be a problem with this checkin (or I misunderstand) -- this checkin includes the following change to drbd_nl_net_conf:


Modified: trunk/drbd/drbd_nl.c
===================================================================
--- trunk/drbd/drbd_nl.c	2006-09-25 07:24:32 UTC (rev 2452)
+++ trunk/drbd/drbd_nl.c	2006-09-25 11:32:44 UTC (rev 2453)
@@ -934,8 +934,13 @@
 	struct crypto_tfm* tfm = NULL;
 	struct hlist_head *new_tl_hash = NULL;
 	struct hlist_head *new_ee_hash = NULL;
-	struct Drbd_Conf *odev;
+	drbd_dev *odev;
 
+	if (mdev->state.conn > StandAlone) {
+		retcode=HaveNetConfig;
+		goto fail;
+	}
+

This has the unfortunate side effect of blocking 'drbdadm connect' requests in any state other than Standalone - so I cant manually cause the network to be reconnected anymore -- is this supposed to be something I never have to do? Because right now my system is WFConnection on one side and Unconnected on the other...

Simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Drbd-dev] FW: [DRBD-cvs] svn commit by phil - r2453 - in trunk: drbd drbd/linuxuser - * Removed some explicit calls to drbd_thread_ ... funct
  2006-09-25 19:44 [Drbd-dev] FW: [DRBD-cvs] svn commit by phil - r2453 - in trunk: drbd drbd/linuxuser - * Removed some explicit calls to drbd_thread_ ... funct Graham, Simon
@ 2006-09-26 14:37 ` Philipp Reisner
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Reisner @ 2006-09-26 14:37 UTC (permalink / raw)
  To: drbd-dev

Am Montag, 25. September 2006 21:44 schrieb Graham, Simon:
> I think there may be a problem with this checkin (or I misunderstand) --
> this checkin includes the following change to drbd_nl_net_conf:
>
>
> Modified: trunk/drbd/drbd_nl.c
> ===================================================================
> --- trunk/drbd/drbd_nl.c	2006-09-25 07:24:32 UTC (rev 2452)
> +++ trunk/drbd/drbd_nl.c	2006-09-25 11:32:44 UTC (rev 2453)
> @@ -934,8 +934,13 @@
>  	struct crypto_tfm* tfm = NULL;
>  	struct hlist_head *new_tl_hash = NULL;
>  	struct hlist_head *new_ee_hash = NULL;
> -	struct Drbd_Conf *odev;
> +	drbd_dev *odev;
>
> +	if (mdev->state.conn > StandAlone) {
> +		retcode=HaveNetConfig;
> +		goto fail;
> +	}
> +
>
> This has the unfortunate side effect of blocking 'drbdadm connect' requests
> in any state other than Standalone - so I cant manually cause the network
> to be reconnected anymore -- is this supposed to be something I never have
> to do? Because right now my system is WFConnection on one side and
> Unconnected on the other...
>

Hi Simon,

This was a bug somwhere else, I fixed today. That particular
code means that it is no longer possible to simply do

drbdadm connect r0
drbdadm connect r0
...

to cause it to reconnect. Instead you have to do now:

drbdadm disconnect r0 ; drbdadm connect r0
drbdadm disconnect r0 ; drbdadm connect r0
...

-phil
-- 
: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-26 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 19:44 [Drbd-dev] FW: [DRBD-cvs] svn commit by phil - r2453 - in trunk: drbd drbd/linuxuser - * Removed some explicit calls to drbd_thread_ ... funct Graham, Simon
2006-09-26 14:37 ` Philipp Reisner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox