Bug 1006221
Summary: | tail -F does not handle dead symlinks gracefully | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Pushpendra Chavan <pchavan> | |
Component: | coreutils | Assignee: | Ondrej Oprala <ooprala> | |
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 6.4 | CC: | azelinka, byount, ooprala, ovasik, pbrady, pchavan, pkrizak, todoleza | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | coreutils-8.4-28.el6 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1035219 (view as bug list) | Environment: | ||
Last Closed: | 2013-11-21 20:57:02 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1035219 |
Description
Pushpendra Chavan
2013-09-10 09:17:25 UTC
(In reply to Pushpendra Chavan from comment #0) > Actual results: > Tail should notice when it's monitoring a dead symlink, and "wake up" when > the symlink is no longer dead, and monitor the referent's content. > > Expected results: > Its not monitoring it. The expected and actual results are backwards. The actual result (in RHEL6) is that tail -F ignores updates to the referent of a symlink after the symlink is killed (the referent is removed). The expected results are like in RHEL5: tail notices when the dead symlink is revived and resumes tailing the contents of the referent. The difference is that RHEL-6 is using inotify and RHEL-5 is using polling. You can kind of restore the RHEL-5 behaviour with using ---disable-inotify (intentionally undocumented option, as polling mode is considered deprecated). Still probably worth to fix in tail. Issue still occurs even with coreutils-8.21. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-1652.html Note the fix for this is too noisy, reporting the following "error" for any symlinks: https://www.centos.org/forums/viewtopic.php?f=14&t=48255 The upstream fix silently reverted to polling: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=ba6582e This is now public: https://bugzilla.redhat.com/show_bug.cgi?id=1006221#c10 Basically the downstream fix for that was too noisy. Upstream doesn't bleat about this implementation detail. |