[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46613: [PATCH] stat: add support for the exfat file system
From: |
Kamil Dudka |
Subject: |
bug#46613: [PATCH] stat: add support for the exfat file system |
Date: |
Thu, 18 Feb 2021 11:18:04 +0100 |
* src/stat.c (human_fstype): Add case for the 'exfat' file system type.
* NEWS: Mention the Improvement.
Bug: https://bugzilla.redhat.com/1921427
---
NEWS | 2 +-
src/stat.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
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 */
--
2.26.2
- bug#46613: [PATCH] stat: add support for the exfat file system,
Kamil Dudka <=