OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-4822-g340ec2f
Gerrit Code Review
Mon, 25 Apr 2016 00:04:33 -0400
The following commit has been merged in the master branch:
Author: Michael Meffie <firstname.lastname@example.org>
Date: Mon Mar 14 16:09:56 2016 -0400
util: allocate log filename buffers
Allocate the ourName buffer to save the log filename during OpenLog(),
instead of trying to copy the log filename to a fixed size buffer.
Deallocate this buffer when the log is closed with CloseLog(). Save the
log file name even when MR-AFS style logging is not effect to allow
ReOpenLog() to use the saved filename in a later commit.
Dynamically allocate a buffer when formatting a file name for log
rotation instead of using a fixed size buffer on the stack. Allocate
the buffer for both traditional Transarc-style log file renaming
(appending ".old" to the log filename) and the MR-AFS style logging
(appending a timestamp to the log filename).
Tested-by: BuildBot <email@example.com>
Reviewed-by: Benjamin Kaduk <firstname.lastname@example.org>
src/util/serverLog.c | 63 ++++++++++++++++++++++++++++++++-----------------
1 files changed, 41 insertions(+), 22 deletions(-)
OpenAFS Master Repository