From 55a7e2dcecaf482c40840840db2b0b795bad2bb9 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Wed, 21 Aug 2019 16:16:13 -0400 Subject: [PATCH] LU-12671 mdd: rename mdd/sync_perm to sync_permissions Commit e783bbff accidentally renamed a sysfs variable when moving. Change the sysfs file to it proper name Test-Parameters: trivial testlist=replay-vbr Change-Id: I56e0534506271cf6760f775a9c8fa99b12683861 Fixes: e783bbff ("LU-8066 mdd: migrate from proc to sysfs") Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/35851 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Shaun Tancheff Reviewed-by: Arshad Hussain Reviewed-by: Oleg Drokin --- lustre/mdd/mdd_lproc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lustre/mdd/mdd_lproc.c b/lustre/mdd/mdd_lproc.c index 27d3f31..3ab3e9d 100644 --- a/lustre/mdd/mdd_lproc.c +++ b/lustre/mdd/mdd_lproc.c @@ -430,8 +430,8 @@ static ssize_t changelog_deniednext_store(struct kobject *kobj, } LUSTRE_RW_ATTR(changelog_deniednext); -static ssize_t sync_perm_show(struct kobject *kobj, struct attribute *attr, - char *buf) +static ssize_t sync_permission_show(struct kobject *kobj, + struct attribute *attr, char *buf) { struct mdd_device *mdd = container_of(kobj, struct mdd_device, mdd_kobj); @@ -439,8 +439,9 @@ static ssize_t sync_perm_show(struct kobject *kobj, struct attribute *attr, return sprintf(buf, "%d\n", mdd->mdd_sync_permission); } -static ssize_t sync_perm_store(struct kobject *kobj, struct attribute *attr, - const char *buffer, size_t count) +static ssize_t sync_permission_store(struct kobject *kobj, + struct attribute *attr, + const char *buffer, size_t count) { struct mdd_device *mdd = container_of(kobj, struct mdd_device, mdd_kobj); @@ -455,7 +456,7 @@ static ssize_t sync_perm_store(struct kobject *kobj, struct attribute *attr, return count; } -LUSTRE_RW_ATTR(sync_perm); +LUSTRE_RW_ATTR(sync_permission); static ssize_t lfsck_speed_limit_show(struct kobject *kobj, struct attribute *attr, char *buf) @@ -556,7 +557,7 @@ static struct attribute *mdd_attrs[] = { &lustre_attr_changelog_deniednext.attr, &lustre_attr_lfsck_async_windows.attr, &lustre_attr_lfsck_speed_limit.attr, - &lustre_attr_sync_perm.attr, + &lustre_attr_sync_permission.attr, NULL, }; -- 1.8.3.1