From eb7b3dac482ed0427b6e618bf60507a7a1a99769 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Mon, 20 May 2013 11:32:04 -0400 Subject: [PATCH] volser: -log restore operations Add vos restore to the list of operations which are logged when the volserver is running with the -log option. Example log line: admin on 172.16.50.141 is executing Restore 536870969 Change-Id: Ia6eb07258831865dfe2c85d1b9df078f33c4b640 Reviewed-on: http://gerrit.openafs.org/9926 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Derrick Brashear --- src/volser/volprocs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 4c01848..ad66e35 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -1547,6 +1547,11 @@ VolRestore(struct rx_call *acid, afs_int32 atrans, afs_int32 aflags, TRELE(tt); return ENOENT; } + if (DoLogging) { + char buffer[16]; + Log("%s on %s is executing Restore %" AFS_VOLID_FMT "\n", caller, + callerAddress(acid, buffer), afs_printable_VolumeId_lu(tt->volid)); + } TSetRxCall(tt, acid, "Restore"); DFlushVolume(V_parentId(tt->volume)); /* Ensure dir buffers get dropped */ -- 1.9.4