From: Kamil Dudka Date: Thu, 18 Feb 2021 10:18:04 +0000 (+0100) Subject: stat,tail: add support for the exfat file system X-Git-Tag: v9.0~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5e0d8f387e81e854427addbbaf2504541bbf4b9;p=thirdparty%2Fcoreutils.git stat,tail: add support for the exfat file system 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 --- diff --git a/NEWS b/NEWS index 79bb25e860..08a58d56a6 100644 --- 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. diff --git a/src/stat.c b/src/stat.c index 9baa36392a..7bd1044cb4 100644 --- a/src/stat.c +++ b/src/stat.c @@ -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 */