[PATCH] syslogd: Possible endless loop when reinitializing after power loss
Rich Felker
dalias at aerifal.cx
Mon Oct 24 23:57:42 UTC 2011
On Tue, Oct 25, 2011 at 12:52:42AM +0200, Christian Engelmayer wrote:
> Function log_locally() within the syslogd can potentially lock up when
> restarting the daemon after a power loss in case the unplanned shutdown hit the
> rename operation during logfile rotation.
>
> While POSIX requires the rename operation to be atomic, many file systems such
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> as JFFS2 implement the rename operation in 2 steps by linking the new name
> followed by unlinking the original name. In case of a power loss during the
Sounds like this bug report belongs on LKML or the bug tracker for
these filesystems...
Rich
More information about the busybox
mailing list