[DRBD-user] [PATCH 4/4] drbd.ocf: Remove RA debugging code in favor of trace_ra=1

Lars Ellenberg lars.ellenberg at linbit.com
Fri Mar 4 13:07:45 CET 2016

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On Tue, Mar 01, 2016 at 07:09:45PM +0300, Vladislav Bogdanov wrote:
> 01.03.2016 18:24, Lars Ellenberg wrote:
> >On Mon, Feb 29, 2016 at 03:10:38PM +0000, Vladislav Bogdanov wrote:
> >>Two debugging methods conflict with each other,
> >>particularly it is impossible to trace drbd RA with trace_ra=1
> >
> >I don't see how that would conflict.
> >If the "magic file" does not exist,
> >the code you drop is inactive anyways.
> 
> ocf-shellfuncs:
> ocf_trace_redirect_to_file() {
>     local dest=$1
>     if ocf_is_bash4; then
>         exec 9>$dest
>         BASH_XTRACEFD=9
>     else
>         exec 2>$dest
>     fi
> }

> drbd.ocf:
> if ls_stat_is_dir_0700_root $DEBUG_LOG_DIR &&

> else
>     exec 9>/dev/null
> fi

> Note 'exec 9' lines.
> So with bash 4 all trace_ra is forcibly redirected to /dev/null.

So we use 8, or 99, I don't care.


-- 
: Lars Ellenberg
: LINBIT | Keeping the Digital World Running
: DRBD -- Heartbeat -- Corosync -- Pacemaker

DRBD® and LINBIT® are registered trademarks of LINBIT
__
please don't Cc me, but send to list -- I'm subscribed



More information about the drbd-user mailing list