From: Andrew Deason Date: Thu, 3 Sep 2009 19:43:28 +0000 (-0500) Subject: Update accessDate on volume access X-Git-Tag: openafs-stable-1_4_12pre1~130 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e145bd987bf4f3dc5148f932a16b625af7b3437e;p=packages%2Fo%2Fopenafs.git Update accessDate on volume access Right now accessDate is simply never updated, so the last access time for a volume is never reported. Simply update the field in VBumpVolumeUsage_r, so we track the last time the volume was accessed. Note that this does not increase disk writes to the volume header; the performance impact is effectively nil. Reviewed-on: http://gerrit.openafs.org/385 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 5d9c767ac55b2d1b8f5b87dc9ced63e282af7bac) Reviewed-on: http://gerrit.openafs.org/398 --- diff --git a/src/vol/volume.c b/src/vol/volume.c index d305b06c3..717524b9a 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -1792,6 +1792,7 @@ void VBumpVolumeUsage_r(register Volume * vp) { unsigned int now = FT_ApproxTime(); + V_accessDate(vp) = now; if (now - V_dayUseDate(vp) > OneDay) VAdjustVolumeStatistics_r(vp); /*