From 56c9a43ac2721f63053dc1d2d9820640cc2fb53a Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Fri, 23 May 2014 00:20:43 +0100 Subject: [PATCH] stat,tail: improve support for LogFS and ConfigFS * src/stat.c (human_fstype): Add new file system ID definitions. * NEWS: Mention the improvement. --- NEWS | 6 +++--- src/stat.c | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index ced356c8e9..9679b46843 100644 --- a/NEWS +++ b/NEWS @@ -110,9 +110,9 @@ GNU coreutils NEWS -*- outline -*- split avoids unnecessary input buffering, immediately writing input to output which is significant with --filter or when writing to fifos or stdout etc. - stat and tail work better with HFS+ and HFSX. stat -f --format=%T now reports - the file system type, and tail -f now uses inotify for files, rather than the - default of issuing a warning and reverting to polling. + stat and tail work better with HFS+, HFSX, LogFS and ConfigFS. stat -f + --format=%T now reports the file system type, and tail -f now uses inotify, + rather than the default of issuing a warning and reverting to polling. * Noteworthy changes in release 8.22 (2013-12-13) [stable] diff --git a/src/stat.c b/src/stat.c index 148ff49cc4..6f42b61bd3 100644 --- a/src/stat.c +++ b/src/stat.c @@ -280,6 +280,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "coda"; case S_MAGIC_COH: /* 0x012FF7B7 local */ return "coh"; + case S_MAGIC_CONFIGFS: /* 0x62656570 local */ + return "configfs"; case S_MAGIC_CRAMFS: /* 0x28CD3D45 local */ return "cramfs"; case S_MAGIC_CRAMFS_WEND: /* 0x453DCD28 local */ @@ -350,6 +352,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "jfs"; case S_MAGIC_KAFS: /* 0x6B414653 remote */ return "k-afs"; + case S_MAGIC_LOGFS: /* 0xC97E8168 local */ + return "logfs"; case S_MAGIC_LUSTRE: /* 0x0BD00BD0 remote */ return "lustre"; case S_MAGIC_MINIX: /* 0x137F local */ -- 2.47.2