summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
authorMartial Bornet <mbornet.pro@gmail.com>2011-10-20 19:18:09 +0200
committerJim Meyering <meyering@redhat.com>2011-10-21 09:03:30 +0200
commitd191bfe8a688d40aac0e3626b434b54ddbafd072 (patch)
tree17b24f624f0598d799db3a17ad862dd097be133b /src/tail.c
parentf5b498c09ab399d1c721e30d38a2837dca2b73e9 (diff)
downloadcoreutils-d191bfe8a688d40aac0e3626b434b54ddbafd072.tar.xz
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.
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tail.c b/src/tail.c
index f31577633..1641a12d4 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -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: