public inbox for hail-devel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: Re: [Patch 1/3] CLD: End-to-end verbosity v3
Date: Wed, 14 Apr 2010 00:01:23 -0400	[thread overview]
Message-ID: <4BC53E13.3050801@garzik.org> (raw)
In-Reply-To: <20100413143037.55455efe@redhat.com>

On 04/13/2010 04:30 PM, Pete Zaitcev wrote:
> It has been observed that it's not possible to enable the session-level
> verbose dump with -v switch of cldcli anymore (post XDR and ncld).
>
> The main issue is that it is impossible to set the session verbosity by
> an application control. Secondary issue is that if application attempts
> to change the verbosity level, it cannot do so for newly-created sessions,
> because the session structure is allocated when session is created.
>
> Contributing to the confusion is the desire not to enable excessive
> verbosity in the CLD sessions whenever debugging is requested.
>
> To fix these issues, the patch does the following:
>
>   - Drops all commented-out inserts that assign additional verbosity
>     from libraries. Permits top-level applications to specify verbosity
>     (what cldcli -v was intended to do).
>
>   - Splits per-packet verbosity away from debugging messages.
>
>   - Establishes -D 2 to mean "CLD protocol verbosity" across applications
>     and the daemon (this replaces the "old" -v). The existing -D 1 now
>     controls the program debugging only, and there is no bit mask.
>
> Coincidentially this fixes the crash whenever there's a resolution
> failure for an SRV record.
>
> Signed-Off-By: Pete Zaitcev<zaitcev@redhat.com>
>
> ---
>   include/cldc.h       |    1
>   include/hail_log.h   |   24 +++++----
>   include/ncld.h       |    2
>   lib/cldc.c           |  104 ++++++++++++++++++++++++-----------------
>   pkg/cld.sysconf      |    2
>   server/server.c      |   19 ++++---
>   test/basic-io.c      |    4 -
>   test/basic-session.c |    2
>   test/lock-file.c     |    2
>   tools/cldcli.c       |   17 +++---
>   tools/cldfuse.c      |    2
>   11 files changed, 104 insertions(+), 75 deletions(-)

applied, thanks for the revisions

Long term, I think the per-packet session logging macro should be made 
more clear, perhaps calling it HAIL_SESS or even HAIL_PKT

	Jeff



  reply	other threads:[~2010-04-14  4:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-13 20:30 [Patch 1/3] CLD: End-to-end verbosity v3 Pete Zaitcev
2010-04-14  4:01 ` Jeff Garzik [this message]
2010-04-14 16:41   ` Pete Zaitcev

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=4BC53E13.3050801@garzik.org \
    --to=jeff@garzik.org \
    --cc=hail-devel@vger.kernel.org \
    --cc=zaitcev@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox