Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: lustre: obd: rename health sysfs file to health_check

Testing revealed that the sysfs file health is actually the
wrong name. Rename to the proper name health_check.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

James Simmons and committed by
Greg Kroah-Hartman
fbcda650 0efe6171

+5 -5
+4 -4
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c
··· 217 217 return sprintf(buf, "%s\n", "on"); 218 218 } 219 219 220 - static ssize_t health_show(struct kobject *kobj, struct attribute *attr, 221 - char *buf) 220 + static ssize_t 221 + health_check_show(struct kobject *kobj, struct attribute *attr, char *buf) 222 222 { 223 223 bool healthy = true; 224 224 int i; ··· 311 311 312 312 LUSTRE_RO_ATTR(version); 313 313 LUSTRE_RO_ATTR(pinger); 314 - LUSTRE_RO_ATTR(health); 314 + LUSTRE_RO_ATTR(health_check); 315 315 LUSTRE_RW_ATTR(jobid_var); 316 316 LUSTRE_RW_ATTR(jobid_name); 317 317 318 318 static struct attribute *lustre_attrs[] = { 319 319 &lustre_attr_version.attr, 320 320 &lustre_attr_pinger.attr, 321 - &lustre_attr_health.attr, 321 + &lustre_attr_health_check.attr, 322 322 &lustre_attr_jobid_name.attr, 323 323 &lustre_attr_jobid_var.attr, 324 324 NULL,
+1 -1
drivers/staging/lustre/sysfs-fs-lustre
··· 11 11 Shows if the lustre module has pinger support. 12 12 "on" means yes and "off" means no. 13 13 14 - What: /sys/fs/lustre/health 14 + What: /sys/fs/lustre/health_check 15 15 Date: May 2015 16 16 Contact: "Oleg Drokin" <oleg.drokin@intel.com> 17 17 Description: