From: Michael Meffie Date: Mon, 20 May 2013 15:32:04 +0000 (-0400) Subject: volser: -log restore operations X-Git-Tag: upstream/1.6.10_pre1^2~112 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9492d2ac0ca6ff8390713229382fcc5e1adb24ce;p=packages%2Fo%2Fopenafs.git 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 Reviewed-on: http://gerrit.openafs.org/9926 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Derrick Brashear (cherry picked from commit eb7b3dac482ed0427b6e618bf60507a7a1a99769) Change-Id: If09d8d170c14cfd71c181cbdc87c6027ee570c45 Reviewed-on: http://gerrit.openafs.org/11153 Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Perry Ruiter Reviewed-by: Benjamin Kaduk Tested-by: BuildBot Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand --- diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 96519a093..ea12c6397 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -1564,6 +1564,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 %u\n", caller, + callerAddress(acid, buffer), tt->volid); + } TSetRxCall(tt, acid, "Restore"); DFlushVolume(V_parentId(tt->volume)); /* Ensure dir buffers get dropped */