Project

General

Profile

Actions

Bug #4301

closed

logadm unnecessarily copies historical logs when "-c" is specified

Added by Robert Mustacchi over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
cmd - userland programs
Start date:
2013-11-07
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

logadm's -c option is defined to "[r]otate the log file by copying it and truncating the original logfile to zero length, rather than renaming the file." This is clearly intended to apply to the log file being rotated – but logadm also applies this to the rotation of all historical logs. This means that multi-gigabyte files are unnecessarily copied instead of being simply renamed.

Actions #1

Updated by Robert Mustacchi over 9 years ago

  • Status changed from New to Resolved

Resolved in 4bc1f5b268a3ca72608b1759f9a984f8e4b51651.

Actions

Also available in: Atom PDF