Whamcloud - gitweb
LU-1095 mdc: remove console spew from mdc_ioc_fid2path 78/17078/3
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 6 Nov 2015 21:50:01 +0000 (14:50 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 30 Nov 2015 17:20:02 +0000 (17:20 +0000)
commit3cc79c2fb5cdfb8e7a0eef45cf4794923a898493
tree45f7fb3b852e8b8f8a43fc7af0b678c4aaa32591
parent544d46eb8f13b9ba9f33d0af796665c11ea45163
LU-1095 mdc: remove console spew from mdc_ioc_fid2path

In some cases with a very long pathname, such as with sanity.sh
test_154c, mdc_ioc_fid2path() would spew long debug messages to
the log, because libcfs_debug_vmsg2() refuses to log messages over
one page in size.

Truncate the debug message to only log the last 512 characters
of the pathname, which is sufficient for most debugging, saves a
bit of space in the debug log, and will prevent the debug logging
from printing to the console in the first place.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I3cad19d02e8065574b8baf5694e9894e43112318
Reviewed-on: http://review.whamcloud.com/17078
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdc/mdc_request.c