From: Andrew Deason Date: Tue, 7 Jul 2009 22:34:17 +0000 (-0500) Subject: Always display vnode accesses in vos output X-Git-Tag: openafs-devel-1_5_61~174 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=f52b97b76cba008c9aa6ae843869c95d83fbd9f9 Always display vnode accesses in vos output Vos was not displaying the "N accesses in the past day (i.e., vnode references)" message when updateDate was unset. Fix that. FIXES 125064 Reviewed-on: http://gerrit.openafs.org/9 Verified-by: Andrew Deason Reviewed-by: Jeffrey Altman Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear --- diff --git a/src/volser/vos.c b/src/volser/vos.c index 18d8a80..e4deabd 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -536,13 +536,12 @@ DisplayFormat(pntr, server, part, totalOK, totalNotOK, totalBusy, fast, #endif if (!pntr->updateDate) fprintf(STDOUT, " Last Update Never\n"); - else { + else fprintf(STDOUT, " Last Update %s", vos_ctime( & pntr->updateDate)); - fprintf(STDOUT, - " %d accesses in the past day (i.e., vnode references)\n", - pntr->dayUse); - } + fprintf(STDOUT, + " %d accesses in the past day (i.e., vnode references)\n", + pntr->dayUse); } else if (pntr->status == VBUSY) { *totalBusy += 1; qPut(&busyHead, pntr->volid); @@ -693,13 +692,12 @@ XDisplayFormat(a_xInfoP, a_servID, a_partID, a_totalOKP, a_totalNotOKP, #endif if (!a_xInfoP->updateDate) fprintf(STDOUT, " Last Update Never\n"); - else { + else fprintf(STDOUT, " Last Update %s", vos_ctime( & a_xInfoP->updateDate)); - fprintf(STDOUT, - " %d accesses in the past day (i.e., vnode references)\n", - a_xInfoP->dayUse); - } + fprintf(STDOUT, + " %d accesses in the past day (i.e., vnode references)\n", + a_xInfoP->dayUse); /* * Print all the read/write and authorship stats.