Whamcloud - gitweb
LU-9067 utils: ensure debugfs is mounted 82/25182/8
authorJames Simmons <uja.ornl@yahoo.com>
Fri, 17 Feb 2017 17:17:19 +0000 (12:17 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 Mar 2017 05:11:54 +0000 (05:11 +0000)
commite53bbbc510f9ac96f2556131c405c7e5c749cc27
treed33472cf04f0eb6e27a0a8eb76339fcae018c49b
parentea5736257d8968fc22450ef502e14ea6755642f0
LU-9067 utils: ensure debugfs is mounted

With the move of lustre to sysfs and tracepoint it
will become critical to have debugfs mounted. On
older platforms like RHEL6 its not mounted by default.
Also it is possible that debugfs could become umounted
by accident thus disabling needed functionality
to control lustre. Add to libcfs.a a function that
is always called to ensure debugfs is mounted.
If debugfs is not mounted then mount it if the caller
is root.

Change-Id: I21f85ba252b67bfbc22b23920e2ccaffc196074b
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/25182
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
libcfs/libcfs/util/param.c
lustre/tests/conf-sanity.sh