From 892ea13c864357f9fee113fd7fcdaeed1162cf25 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Thu, 9 Mar 2017 13:35:31 -0500 Subject: [PATCH] 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 --- lustre/obdclass/linux/linux-module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 1.8.3.1