tail,stat: add support for FhGFS
authorJim Meyering <meyering@redhat.com>
Thu, 22 Dec 2011 08:26:31 +0000 (09:26 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 22 Dec 2011 08:36:31 +0000 (09:36 +0100)
* 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.

NEWS
THANKS.in
src/stat.c
src/tail.c

diff --git a/NEWS b/NEWS
index 51c44c7..80b6c9a 100644 (file)
--- 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]
index 3541c6f..44a617f 100644 (file)
--- 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
index 0f87dfd..801073b 100644 (file)
@@ -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 */
index 1641a12..1f619f3 100644 (file)
@@ -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: