mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Mark Vitale <mvitale@sinenomine.net> Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
parent
c4fce52a54
commit
eb7b3dac48
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user