From: James Simmons Date: Thu, 9 Mar 2017 18:35:31 +0000 (-0500) Subject: LU-8066 obd: make version_show sysfs compliant X-Git-Tag: 2.9.56~51 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=892ea13c864357f9fee113fd7fcdaeed1162cf25 LU-8066 obd: make version_show sysfs compliant 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 Reviewed-on: https://review.whamcloud.com/25632 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Andreas Dilger --- diff --git a/lustre/obdclass/linux/linux-module.c b/lustre/obdclass/linux/linux-module.c index 0825d8f..72beddc 100644 --- a/lustre/obdclass/linux/linux-module.c +++ b/lustre/obdclass/linux/linux-module.c @@ -208,7 +208,7 @@ struct miscdevice obd_psdev = { 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,