Whamcloud - gitweb
LU-5969 lustreapi: allow "version" without "lustre:" 24/25324/2
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 8 Feb 2017 12:11:32 +0000 (05:11 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 15 Feb 2017 01:03:03 +0000 (01:03 +0000)
commitd89191163324200d1f57a095faef1253c7d9fe11
tree0b0cd632a3bd4a68318b6e7bc961e737c0add840
parenteecf886f2491af99af66ebde2ef9793f060cf2ff
LU-5969 lustreapi: allow "version" without "lustre:"

The upstream kernel /sys/fs/lustre/version file does not have the
"lustre:" prefix in it, only the version string.  Since we no longer
have multiple version strings in this file, if "lustre:" is not
found then just assume the whole string is the version, otherwise
continue to strip out the "lustre:" prefix as we did before.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: Ife50f83ad422a8e3c9ae857f519a5cf4ca3ebbe5
Reviewed-on: https://review.whamcloud.com/25324
Tested-by: Jenkins
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/liblustreapi_util.c