]> git.michaelhowe.org Git - packages/o/openafs.git/commit
viced: Improve client error log messages
authorAndrew Deason <adeason@sinenomine.net>
Fri, 18 Oct 2013 00:22:48 +0000 (20:22 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 27 Mar 2014 08:51:27 +0000 (01:51 -0700)
commit462cc497db11c390e626925d383bdef9c98a1e62
treeb09ffd481e4f30afaee43755e411290f0260c550
parentc4752dca439a12c2be162eb98869ef37d7c43767
viced: Improve client error log messages

Commit 6c41b1f740e16b5b9adfe9026630595be6f0699e improved a few log
messages to include the client ip and port of the request triggering
that log message. Include the viceid and fid (if applicable), too, so
an administrator may more easily identify the cause.

This creates the function LogClientError, so we can use a common
function for logging very similar information. This also modifies
h_FindClient_r to give the viceid to the caller, even in the case of
error. In addition, this modifies CallPreamble to accept a fid and
modifies all callers to accomodate.

Reviewed-on: http://gerrit.openafs.org/10347
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 0a5e878aa0a71c4dfaef1806744ed78bcc13b9f4)

Change-Id: Ib8b41989809e559dee486757b11ccff789d615e9
Reviewed-on: http://gerrit.openafs.org/10757
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/viced/afsfileprocs.c
src/viced/host.c
src/viced/host.h