From 5d9c767ac55b2d1b8f5b87dc9ced63e282af7bac Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 31 Aug 2009 11:10:10 -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 --- src/vol/volume.c | 1 + 1 file changed, 1 insertion(+) 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); /* -- 2.39.5