From: Andrew Deason Date: Mon, 31 Aug 2009 16:10:10 +0000 (-0500) Subject: Update accessDate on volume access X-Git-Tag: openafs-devel-1_5_63~46 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5d9c767ac55b2d1b8f5b87dc9ced63e282af7bac;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 --- diff --git a/src/vol/volume.c b/src/vol/volume.c index b440e9f7f..816799e63 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -5018,6 +5018,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); /*