From e145bd987bf4f3dc5148f932a16b625af7b3437e Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 3 Sep 2009 14:43:28 -0500 Subject: [PATCH] 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 --- src/vol/volume.c | 1 + 1 file changed, 1 insertion(+) 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); /* -- 2.39.5