[Drbd-dev] Re: reboot notifier
Lars Ellenberg
Lars.Ellenberg at linbit.com
Thu Aug 3 12:33:14 CEST 2006
/ 2006-08-03 14:01:07 +0530
\ Milind Dumbare:
> My point was code structuring. As this is the way reboot notifiers are
> written. But for doing interesting things in notify functions, it will
> be nice to have switch cases structured, rather than writing function
> which is doing nothing.
great. having switch statements which do the wrong thing is good,
because the code is more nicely structured. wow.
don't get me wrong. I put that function there, so once we know something
"interessting" that we want/need to do on reboot, I don't need to
remember how to implement those notifiers.
but before we put some functional code in there, maybe we should first
figure out what those "interesting things" are, that we want/need to do
on notification.
I'm open for suggestions.
however, just calling drbd_cleanup there unconditionally is not useful.
--
: 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 :
More information about the drbd-dev
mailing list