From 8d2ecd4a3e30be880b2937bc1d76297a1c2e387a Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 14 Dec 2009 22:45:34 +0000 Subject: 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. --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index cad425407..6128e3fa5 100644 --- a/NEWS +++ b/NEWS @@ -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] -- cgit v1.2.3-54-g00ecf