diff options
author | Pádraig Brady <P@draigBrady.com> | 2009-12-14 22:45:34 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2009-12-25 00:56:41 +0000 |
commit | 8d2ecd4a3e30be880b2937bc1d76297a1c2e387a (patch) | |
tree | c5eab862b21df8caf952c33a7f3da45954b021a6 /NEWS | |
parent | 11dc0016bb72372bbd46b964fb57f4d10448225a (diff) | |
download | coreutils-8d2ecd4a3e30be880b2937bc1d76297a1c2e387a.tar.xz |
tail: fix --follow to not use inotify on remote files
* src/tail.c (struct File_spec): Add a flag to record if file is remote.
(recheck): If we're using inotify then check if the file has gone remote
and if so, drop it with a warning.
(any_remote_files): A new function to check for any open remote files.
(tailable_stdin): A new function to refactor the check for whether
a tailable file was specified through stdin.
(fremote): A new function to check if a file descriptor
refers to a remote file.
(tail_forever_inotify): Add some comments.
(tail_file): Record if a file is remote when initially opened.
(main): Disable inotify if any remote files specified.
Also document the caveat about remounted files not
being noticed by inotify.
* NEWS: Mention the fix.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -13,6 +13,11 @@ GNU coreutils NEWS -*- outline -*- and rpc_pipefs. Also Minix V3 is displayed correctly as minix3, not minux3. [bug introduced in coreutils-8.1] + tail -f (inotify-enabled) once again works with remote files. + The use of inotify with remote files meant that any changes to those + files that was not done from the local system would go unnoticed. + [bug introduced in coreutils-7.5] + touch -a once again guarantees that a file's change time is adjusted, working around a bug in current Linux kernels. [bug introduced in coreutils-8.1] |