From 896529709230021ba3d2b0000b28a6c4af13970a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 22 Dec 2011 09:26:31 +0100 Subject: 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. --- NEWS | 4 ++-- THANKS.in | 1 + src/stat.c | 2 ++ src/tail.c | 1 + 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: -- cgit v1.2.3-70-g09d2