]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: add support for Windows Subsystem for Linux
authorPádraig Brady <P@draigBrady.com>
Thu, 21 Apr 2016 20:48:50 +0000 (21:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 22 Apr 2016 21:47:48 +0000 (22:47 +0100)
* src/stat.c (human_fstype): Add file system ID definition,
and use "wslfs" as the name.
* NEWS (Improvements): Mention the change.
Fixes http://bugs.gnu.org/23273

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 4cb5caf84ea00edd96b0d14443853c13b9fb4d29..189a03abccb04bb1ae0f5736d498e43556e35598 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -30,10 +30,10 @@ GNU coreutils NEWS                                    -*- outline -*-
 
 ** 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.
+   stat and tail now know about "prl_fs" (a parallels file system),
+   "m1fs" (a Plexistor file system), and "wslfs" (Windows Subsystem for Linux).
+   stat -f --format=%T now reports the file system type, and tail -f uses
+   polling for "prl_fs", inotify for "m1fs", and attempts inotify for "wslfs".
 
 
 * Noteworthy changes in release 8.25 (2016-01-20) [stable]
index ab69fbe7aedf3f490aa9c3d7a5b4fce00a1f260a..7a20ff782d69a972af3fdea12edb88735007d400 100644 (file)
@@ -470,6 +470,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "vxfs";
     case S_MAGIC_VZFS: /* 0x565A4653 local */
       return "vzfs";
+    case S_MAGIC_WSLFS: /* 0x53464846 local */
+      return "wslfs";
     case S_MAGIC_XENFS: /* 0xABBA1974 local */
       return "xenfs";
     case S_MAGIC_XENIX: /* 0x012FF7B4 local */