]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Always display vnode accesses in vos output
authorAndrew Deason <adeason@sinenomine.net>
Tue, 7 Jul 2009 22:34:17 +0000 (17:34 -0500)
committerDerrick Brashear <shadow@dementia.org>
Fri, 7 Aug 2009 17:46:55 +0000 (10:46 -0700)
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 <adeason@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit f52b97b76cba008c9aa6ae843869c95d83fbd9f9)
Reviewed-on: http://gerrit.openafs.org/272
Tested-by: Derrick Brashear <shadow@dementia.org>
src/volser/vos.c

index 13cee76230b8a1ad010050281646ee4590bbd3f4..8df5b14d7c48e1c5cdc097862488cf270212a73d 100644 (file)
@@ -532,13 +532,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);
@@ -689,13 +688,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.