]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
viced: Rename fs_rxstat_userok
authorAndrew Deason <adeason@sinenomine.net>
Fri, 15 Jun 2012 21:55:16 +0000 (16:55 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 12 Jul 2013 15:12:35 +0000 (08:12 -0700)
The fs_rxstat_userok function can be used for other purposes; give it
a more general name.

Reviewed-on: http://gerrit.openafs.org/7571
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 7a875f639f61966f2d327f929305091d2678e99a)

Change-Id: I44301904cc8e7145ba13276a32b7cea475bc0574
Reviewed-on: http://gerrit.openafs.org/9484
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/viced/viced.c

index 7173b10c2b45252a34d590471ae8d14dd523f793..fca939312126516273e9e19ee228b02eae59ff73 100644 (file)
@@ -333,9 +333,9 @@ CheckDescriptors_Signal(int x)
 }
 #endif /* AFS_PTHREAD_ENV */
 
-/* check whether caller is authorized to manage RX statistics */
+/* check whether caller is authorized to perform admin operations */
 int
-fs_rxstat_userok(struct rx_call *call)
+viced_SuperUser(struct rx_call *call)
 {
     return afsconf_SuperUser(confDir, call, NULL);
 }
@@ -2221,7 +2221,7 @@ main(int argc, char *argv[])
     }
 
     /* allow super users to manage RX statistics */
-    rx_SetRxStatUserOk(fs_rxstat_userok);
+    rx_SetRxStatUserOk(viced_SuperUser);
 
     CV_INIT(&fsync_cond, "fsync", CV_DEFAULT, 0);
     MUTEX_INIT(&fsync_glock_mutex, "fsync", MUTEX_DEFAULT, 0);