]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-readonly-volume-callbacks-20071109
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 10 Nov 2007 00:15:55 +0000 (00:15 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 10 Nov 2007 00:15:55 +0000 (00:15 +0000)
commit77cb2308719ad453742a14e094674ab38d104f96
treede77eee07c4b19136e2c04c20be91db72d9a1c43
parentb3bfca66dc4dde541091819ec5ffcd820445ca82
DEVEL15-windows-readonly-volume-callbacks-20071109

A .readonly volume callback applies to the entire volume.  Track it
in the cm_volume_t cbExpiresRO field and apply it to all cm_scache_t
objects with valid callbacks that are associated with that volume upon
each daemon callback check.  This will prevent premature callback
expiration.

Also, attempt to automatically refresh the callbacks every 30 minutes
by obtaining a callback on the volume root.  This value is configurable
with the "daemonCheckVolCBInterval" registry value.

Change from osi_Time() to time() for expiration values in order to
permit conversion to human readable values in cmdebug.

(cherry picked from commit b43d778e9342dd19c010354cf6db854fdf1f7d22)
src/WINNT/afsd/cm_callback.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_volume.c
src/WINNT/afsd/cm_volume.h