From 48758397aecb98672783d8d5960e638d76e5e19c Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 6 Jul 2010 12:38:21 -0500 Subject: [PATCH] vos status: add lastActiveTime field 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 Tested-by: Derrick Brashear Reviewed-by: Derrick Brashear --- doc/man-pages/pod1/vos_status.pod | 15 ++++++++++----- src/volser/vos.c | 2 ++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/doc/man-pages/pod1/vos_status.pod b/doc/man-pages/pod1/vos_status.pod index 12baada9d..1b02b8450 100644 --- a/doc/man-pages/pod1/vos_status.pod +++ b/doc/man-pages/pod1/vos_status.pod @@ -112,28 +112,33 @@ transaction started =item * -C on the second line, where a value of C indicates +In OpenAFS 1.5.75 and later, C on the second line, which +indicates the last time an RPC interacted with this transaction + +=item * + +C on the third line, where a value of C indicates that the volume is not available for other read or write operations during this transaction =item * -C on the third line, which specifies the affected volume's ID +C on the fourth line, which specifies the affected volume's ID number =item * -C on the third line, which indicates where the affected volume +C on the fourth line, which indicates where the affected volume resides (at the beginning of the transaction if this is a move) =item * -C on the third line, which indicates the internal subprocedure +C 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 diff --git a/src/volser/vos.c b/src/volser/vos.c index 094ffc14b..94282f4f8 100644 --- a/src/volser/vos.c +++ b/src/volser/vos.c @@ -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); -- 2.39.5