Whamcloud - gitweb
LU-5969 lustreapi: replace llapi_get_version() 21/16721/11
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 17 May 2016 20:15:30 +0000 (16:15 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:46:23 +0000 (03:46 +0000)
commit0c5fbd80f1ba60a1c6e523864d67a4d9dcf468e6
tree488ec0ce3bd09a54c032332a5795cbb36791eddb
parentd09237044382361b289c01a9f7412818b3599e79
LU-5969 lustreapi: replace llapi_get_version()

The existing llapi_get_version() helper has an awkward calling
style, requiring a temporary input buffer, as well as an output
pointer.

Replace this with llapi_get_version_string() which returns the
the simple version string.  Mark llapi_get_version() deprecated.
Update "lctl lustre_build_version" to use llapi_version_string().

These versions are extracted from {/proc,/sys}/fs/lustre/version
instead of an ioctl, to avoid the messiness that is Lustre ioctls.

Update the "version" file to only print the "lustre:" version,
since the "build:" version is now identical, and the "kernel:"
version has been "patchless_client" for many years already.

Print out the build version at the start of each test so it is
logged in the test results for convenience.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I681a353e6f65fd1ec2d1434fe38dfa55ed3ebbe5
Reviewed-on: http://review.whamcloud.com/16721
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustreapi.h
lustre/obdclass/linux/linux-module.c
lustre/tests/test-framework.sh
lustre/utils/LCOPYING
lustre/utils/lctl.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_param.c
lustre/utils/liblustreapi_util.c
lustre/utils/lustreapi_internal.h
lustre/utils/obd.c