1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 10:15:48 +02:00

tail: with -f, use nanosleep (not inotify) on a GPFS file system

Because tail's fremote function did not designate GPFS as
a remote file system type, tail -f would mistakenly attempt
to use inotify, which cannot work with a remote file system.
* src/tail.c (fremote): List GPFS as a remote file system type.
* NEWS (Bug fixes): Mention it.
Reported in http://bugs.debian.org/646022.
This commit is contained in:
Martial Bornet
2011-10-20 19:18:09 +02:00
committed by Jim Meyering
parent f5b498c09a
commit d191bfe8a6
2 changed files with 5 additions and 0 deletions

4
NEWS
View File

@@ -7,6 +7,10 @@ GNU coreutils NEWS -*- outline -*-
tac no longer fails to handle two or more non-seekable inputs
[bug introduced in coreutils-5.3.0]
tail -f no longer tries to use inotify on GPFS file systems
[you might say this was introduced in coreutils-7.5, along with inotify
support, but the GPFS magic number wasn't in the usual places then.]
* Noteworthy changes in release 8.14 (2011-10-12) [stable]

View File

@@ -904,6 +904,7 @@ fremote (int fd, const char *name)
case S_MAGIC_FUSEBLK:
case S_MAGIC_FUSECTL:
case S_MAGIC_GFS:
case S_MAGIC_GPFS:
case S_MAGIC_KAFS:
case S_MAGIC_LUSTRE:
case S_MAGIC_NCP: