auth: Rework afsconf_UpToDate to use CellServDB
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 5 Mar 2011 23:09:18 +0000 (23:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 13 Mar 2011 20:40:48 +0000 (13:40 -0700)
commit1eb570996485023ce902393a251c5f4e92229d10
treeb877bc03f223cc867c241637017cf0066d073024
parent926755bf222cfaf39a4e4437c468a7a9030fe7a1
auth: Rework afsconf_UpToDate to use CellServDB

Rework the afsconf_UpToDate check so that it uses the modifcation of
the CellServDB, and not the KeyFile to determine whether the
configuration information has been changed under us or not. afsconf
defines the CellServDB as being the single sentinel for a config
directory being changed, and our tools are careful to always touch
the CellServDB when updating anything else there.

Also, rework the _afsconf_Check() code so that it uses afsconf_UpToDate,
rather than including this logic twice.

Change-Id: I8ef5f67afbb5982bb25e12407ea5dc5dc1512840
Reviewed-on: http://gerrit.openafs.org/4203
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/auth/cellconfig.c
tests/auth/authcon-t.c