summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-12-22 09:26:31 +0100
committerJim Meyering <meyering@redhat.com>2011-12-22 09:36:31 +0100
commit896529709230021ba3d2b0000b28a6c4af13970a (patch)
tree3987134dbc1952980afa04494e214ac93df054f6
parented71262bc258311690e7761154f8413465d9c78e (diff)
downloadcoreutils-896529709230021ba3d2b0000b28a6c4af13970a.tar.xz
tail,stat: add support for FhGFS
* src/stat.c (human_fstype): Add a case: fhgfs, 0x19830326. * src/tail.c (fremote): Add S_MAGIC_FHGFS. * NEWS (Bug fixes): Update the entry for GPFS to mention FhGFS, too. Reported by Sven Breuner.
-rw-r--r--NEWS4
-rw-r--r--THANKS.in1
-rw-r--r--src/stat.c2
-rw-r--r--src/tail.c1
4 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 51c44c77d..80b6c9ad2 100644
--- a/NEWS
+++ b/NEWS
@@ -28,9 +28,9 @@ 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
+ tail -f no longer tries to use inotify on GPFS or FhGFS 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.]
+ support, but the new magic numbers weren't in the usual places then.]
* Noteworthy changes in release 8.14 (2011-10-12) [stable]
diff --git a/THANKS.in b/THANKS.in
index 3541c6fe4..44a617fe2 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -553,6 +553,7 @@ Steven P Watson steven@magelico.net
Stuart Citrin ctrn3e8@gmail.com
Stuart Kemp skemp@peter.bmc.com
Stuart Shelton stuart@shelton.me
+Sven Breuner sven.breuner@itwm.fraunhofer.de
Szakacsits Szabolcs szaka@sienet.hu
Tadayoshi Funaba tadf@kt.rim.or.jp
TAKAI Kousuke takai@vlsi.kuee.kyoto-u.ac.jp
diff --git a/src/stat.c b/src/stat.c
index 0f87dfdfa..801073b3e 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -285,6 +285,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "ext2";
case S_MAGIC_FAT: /* 0x4006 */
return "fat";
+ case S_MAGIC_FHGFS: /* 0x19830326 */
+ return "fhgfs";
case S_MAGIC_FUSEBLK: /* 0x65735546 */
return "fuseblk";
case S_MAGIC_FUSECTL: /* 0x65735543 */
diff --git a/src/tail.c b/src/tail.c
index 1641a12d4..1f619f3eb 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -905,6 +905,7 @@ fremote (int fd, const char *name)
case S_MAGIC_FUSECTL:
case S_MAGIC_GFS:
case S_MAGIC_GPFS:
+ case S_MAGIC_FHGFS:
case S_MAGIC_KAFS:
case S_MAGIC_LUSTRE:
case S_MAGIC_NCP: