summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYigal Korman <yigal@plexistor.com>2016-04-13 16:15:20 +0300
committerBernhard Voelker <mail@bernhard-voelker.de>2016-04-14 10:11:05 +0200
commit8faf269250e8eff5f5dd164dfa1d661c34f52ade (patch)
treece8cbac684d9735bbd4446998db010d11629ebcb
parentd33f1fbd671c58df453ce24446174d8c5ce4a355 (diff)
downloadcoreutils-8faf269250e8eff5f5dd164dfa1d661c34f52ade.tar.xz
stat,tail: add support for M1FS
* src/stat.c (human_fstype): Add file system ID definition. * NEWS (Improvements): Mention the change, moving the previously added "prl_fs" change note from "Changes in behavior" to here. Fixes http://bugs.gnu.org/23283
-rw-r--r--NEWS9
-rw-r--r--src/stat.c2
2 files changed, 9 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index dd3ee9ccf..9445977ad 100644
--- a/NEWS
+++ b/NEWS
@@ -20,13 +20,18 @@ GNU coreutils NEWS -*- outline -*-
stat now outputs nanosecond information for time stamps even if
they are out of localtime range.
- stat -f --format=%T now reports "prl_fs" for a parallels file system.
-
sort, tail, and uniq now support traditional usage like 'sort +2'
and 'tail +10' on systems conforming to POSIX 1003.1-2008 and later.
The 2008 edition of POSIX dropped the requirement that arguments
like '+2' must be treated as file names.
+** Improvements
+
+ stat and tail now know about "prl_fs" (a parallels file system), and
+ "m1fs" (a Plexistor file system). stat -f --format=%T now reports the
+ file system type, and tail -f uses the more conservative polling for
+ "prl_fs", and inotify for "m1fs" file systems.
+
* Noteworthy changes in release 8.25 (2016-01-20) [stable]
diff --git a/src/stat.c b/src/stat.c
index 4d7ead302..ab69fbe7a 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -364,6 +364,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "logfs";
case S_MAGIC_LUSTRE: /* 0x0BD00BD0 remote */
return "lustre";
+ case S_MAGIC_M1FS: /* 0x5346314D local */
+ return "m1fs";
case S_MAGIC_MINIX: /* 0x137F local */
return "minix";
case S_MAGIC_MINIX_30: /* 0x138F local */