All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars Ellenberg <Lars.Ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: [Drbd-dev] Re: reboot notifier
Date: Thu, 3 Aug 2006 10:20:33 +0200	[thread overview]
Message-ID: <20060803082033.GF4643@soda.linbit> (raw)
In-Reply-To: <mailman.93.1154590245.4693.drbd-dev@lists.linbit.com>

> From: Milind Dumbare <milind@linsyssoft.com>
> To: drbd-dev@lists.linbit.com
> Date: Thu, 03 Aug 2006 13:03:33 +0530
> Message-Id: <1154590413.2335.14.camel@shadowfox.linsyssoft.com>
> X-Mailer: Evolution 2.6.0 (2.6.0-1) 
> 
> Hi all,
> 	"drbd_cleanup" function can be called from "drbd_notify_sys" in default
> reboot case, for the sake of flow structuring. 
> 	Cleanup will be done when rebooting.
> 
> + 	switch(code) {
> +       case SYS_RESTART:
> +       default:
> +               drbd_cleanup();
> +	break
> +	}

yes of course it could.
what do we gain?

if it is an orderly shutdown, the init scripts would have down'ed drbd
already, so this notifier would never be called, because it is no longer
there. if the shutdown is not so orderly: we cannot "just call drbd_cleanup",
since we may still be primary, or connected or both or...

I probably just don't get your point?

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :

       reply	other threads:[~2006-08-03  8:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.93.1154590245.4693.drbd-dev@lists.linbit.com>
2006-08-03  8:20 ` Lars Ellenberg [this message]
     [not found]   ` <1154593867.2335.20.camel@shadowfox.linsyssoft.com>
2006-08-03 10:33     ` [Drbd-dev] Re: reboot notifier Lars Ellenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060803082033.GF4643@soda.linbit \
    --to=lars.ellenberg@linbit.com \
    --cc=drbd-dev@lists.linbit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.