]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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 12baada9dbbab44c9655afd68802706013fabd45..1b02b8450e14007a6fb9894a37cb55320f20d4cc 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 094ffc14b0c25646fcf5f949d148505e68d269b4..94282f4f834ba97ebfdd811d60e5ca1f6f320df8 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);