Whamcloud - gitweb
LU-14550 libcfs: fix setting of debug_path 09/43109/3
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 25 Mar 2021 06:39:07 +0000 (00:39 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 10 Apr 2021 17:40:49 +0000 (17:40 +0000)
commitf7392c7c4a16bc1127ee448f937ba81c50dcdfd5
tree9b9f4088f318cddfa016b5df5949a10b6a71ab78
parentb2d73351e64677cb8ff650d92a8744634f73e0fd
LU-14550 libcfs: fix setting of debug_path

While it was possible to set "lctl set_param debug_path=path" or
"echo path > /sys/module/libcfs/parameters/libcfs_debug_file_path"
this change does not affect the path used to dump debug logs.

Connect these parameters to the pathname used for the debug log.

Test-Parameters: testlist=sanity env=ONLY=60f,ONLY_REPEAT=30
Fixes: 7092309f325 ("LU-8066 libcfs: migrate to debugfs")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic18b5b24d1ac939c09637e66a342f5e3622367c3
Reviewed-on: https://review.whamcloud.com/43109
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_debug.h
libcfs/libcfs/debug.c
lustre/osc/osc_request.c
lustre/target/tgt_handler.c
lustre/tests/sanity.sh