svn commit: r234927 - in head: etc/rc.d sys/kern

John Baldwin jhb at freebsd.org
Wed May 2 20:56:08 UTC 2012


On Wednesday, May 02, 2012 3:25:15 pm Doug Barton wrote:
> On 5/2/2012 7:25 AM, John Baldwin wrote:
> >   - Simplify accounting log rotation a bit.  There is no need to re-run
> >     accton(8) after renaming the new log file to it's real name.
> 
> Have you thoroughly tested this change? I remember adding that on
> purpose, but I couldn't tell you for sure at this point exactly why.

The reporter tested it.  However, the kernel has no notion of the pathname
once it has opened the file.  It just holds a reference to the vnode directly,
and the rename of the file will not invalidate that reference.

-- 
John Baldwin


More information about the svn-src-all mailing list