vos status: add lastActiveTime field
authorAndrew Deason <adeason@sinenomine.net>
Tue, 6 Jul 2010 17:38:21 +0000 (12:38 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sun, 18 Jul 2010 15:20:41 +0000 (08:20 -0700)
Add a field in the 'vos status' output to report the last time a
transaction was touched by a volser RPC.

Change-Id: Ibfe11e16fc3d7f00134d840ec3ab9fb9263fbea1
Reviewed-on: http://gerrit.openafs.org/2337
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

doc/man-pages/pod1/vos_status.pod
src/volser/vos.c

index 12baada..1b02b84 100644 (file)
@@ -112,28 +112,33 @@ transaction started
 
 =item *
 
-C<attachFlags> on the second line, where a value of C<offline> indicates
+In OpenAFS 1.5.75 and later, C<lastActiveTime> on the second line, which
+indicates the last time an RPC interacted with this transaction
+
+=item *
+
+C<attachFlags> on the third line, where a value of C<offline> indicates
 that the volume is not available for other read or write operations during
 this transaction
 
 =item *
 
-C<volume> on the third line, which specifies the affected volume's ID
+C<volume> on the fourth line, which specifies the affected volume's ID
 number
 
 =item *
 
-C<partition> on the third line, which indicates where the affected volume
+C<partition> on the fourth line, which indicates where the affected volume
 resides (at the beginning of the transaction if this is a move)
 
 =item *
 
-C<procedure> on the third line, which indicates the internal subprocedure
+C<procedure> on the fourth line, which indicates the internal subprocedure
 being executed
 
 =back
 
-A fourth line can appear during certain transactions, and includes the
+A fifth line can appear during certain transactions, and includes the
 following fields:
 
 =over 4
index 094ffc1..94282f4 100644 (file)
@@ -4074,6 +4074,8 @@ VolserStatus(register struct cmd_syndesc *as, void *arock)
        t = pntr->creationTime;
        fprintf(STDOUT, "transaction: %lu  created: %s",
                (unsigned long)pntr->tid, ctime(&t));
+       t = pntr->time;
+       fprintf(STDOUT, "lastActiveTime: %s", ctime(&t));
        if (pntr->returnCode) {
            fprintf(STDOUT, "returnCode: %lu\n",
                    (unsigned long)pntr->returnCode);