]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Logfiles: open with O_APPEND
authorChristof Hanke <christof.hanke@rzg.mpg.de>
Thu, 24 Apr 2014 04:19:32 +0000 (06:19 +0200)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 19 Jun 2014 12:03:22 +0000 (08:03 -0400)
commit7cfb8d388ee64a05aa01cef6f60ef1e89817e0f7
treeee7a72386f037fb6bdb9f8a4d81bd66cc6852d39
parent81be318c65e70df4add91838b4de275840c6127c
Logfiles: open with O_APPEND

This does not change the current (normal) behaviour, but allows
logrotation via "copy and truncate" as offered by logrotate.
Otherwise the processes will remember the offset of the last write
and a truncated file is filled with '\0' until the current offset.
The mrafsStyleLogs are untouched, since they can be rotated by a
kill -HUP and are deprecated anyway.

Reviewed-on: http://gerrit.openafs.org/11092
Reviewed-by: Nathaniel Filardo <nwfilardo@gmail.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Tested-by: D Brashear <shadow@your-file-system.com>
(cherry picked from commit b71a041364d28d6a56905a770cd20d1497ee26ec)

Change-Id: Idc148f4d6b9302d25cbf32763d08ee24eaf7378b
Reviewed-on: http://gerrit.openafs.org/11193
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/util/serverLog.c