]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: add support for the exfat file system
authorKamil Dudka <kdudka@redhat.com>
Thu, 18 Feb 2021 10:18:04 +0000 (11:18 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 18 Feb 2021 13:50:29 +0000 (13:50 +0000)
Bug: https://bugzilla.redhat.com/1921427

* src/stat.c (human_fstype): Add case for the 'exfat' file system type.
* NEWS: Mention the Improvement.
Fixes https://bugs.gnu.org/46613

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 79bb25e8604d2073cd9b575d613c03780d8e8149..08a58d56a68d5f8e183cc678cff4d8194ed291bb 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -75,7 +75,7 @@ GNU coreutils NEWS                                    -*- outline -*-
   df now recognizes these file systems as remote:
   acfs, coda, fhgfs, gpfs, ibrix, ocfs2, and vxfs.
 
-  stat and tail now know about the "devmem", "vboxsf", and "zonefs"
+  stat and tail now know about the "devmem", "exfat", "vboxsf", and "zonefs"
   file system types.  stat -f -c%T now reports the file system type,
   and tail -f uses polling for "vboxsf" and inotify for the others.
 
index 9baa36392a5d9dd217c17ace2f493fc6e34184d7..7bd1044cb4c0413ad3c98656e1d2992d54276107 100644 (file)
@@ -361,6 +361,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "efs";
     case S_MAGIC_EROFS_V1: /* 0xE0F5E1E2 local */
       return "erofs";
+    case S_MAGIC_EXFAT: /* 0x2011BAB0 local */
+      return "exfat";
     case S_MAGIC_EXFS: /* 0x45584653 local */
       return "exfs";
     case S_MAGIC_EXOFS: /* 0x5DF5 local */