From: Andrew Deason Date: Fri, 15 Jun 2012 21:55:16 +0000 (-0500) Subject: viced: Rename fs_rxstat_userok X-Git-Tag: upstream/1.8.0_pre1^2~2316 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7a875f639f61966f2d327f929305091d2678e99a;p=packages%2Fo%2Fopenafs.git viced: Rename fs_rxstat_userok The fs_rxstat_userok function can be used for other purposes; give it a more general name. Change-Id: Ic94e8121ac8b856b288712d486e34556be8250d6 Reviewed-on: http://gerrit.openafs.org/7571 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/viced/viced.c b/src/viced/viced.c index efb4ef2f6..9a406e4fc 100644 --- a/src/viced/viced.c +++ b/src/viced/viced.c @@ -279,9 +279,9 @@ CheckDescriptors_Signal(int x) CheckDescriptors(NULL); } -/* 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); } @@ -2041,7 +2041,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);