Whamcloud - gitweb
LU-8066 obd: make version_show sysfs compliant 32/25632/6
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 9 Mar 2017 18:35:31 +0000 (13:35 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Apr 2017 01:00:47 +0000 (01:00 +0000)
A patch was pushed upstream that added "lustre: "
to the lustre version sysfs file. This was
rejected due to the one item per sysfs rule.
Recently a patch was landed to update the
lustre tools to handle "lustre: " missing. Since
this is the case we can bring the version
sysfs file into compliance.

Change-Id: I74568d581b176c802f132cef3c022fe0fdded164
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/25632
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/obdclass/linux/linux-module.c

index 0825d8f..72beddc 100644 (file)
@@ -208,7 +208,7 @@ struct miscdevice obd_psdev = {
 static ssize_t version_show(struct kobject *kobj, struct attribute *attr,
                            char *buf)
 {
 static ssize_t version_show(struct kobject *kobj, struct attribute *attr,
                            char *buf)
 {
-       return sprintf(buf, "lustre: %s\n", LUSTRE_VERSION_STRING);
+       return sprintf(buf, "%s\n", LUSTRE_VERSION_STRING);
 }
 
 static ssize_t pinger_show(struct kobject *kobj, struct attribute *attr,
 }
 
 static ssize_t pinger_show(struct kobject *kobj, struct attribute *attr,