]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat,tail: improve support for HFS+ and HFSX
authorPádraig Brady <P@draigBrady.com>
Wed, 29 Jan 2014 01:17:53 +0000 (01:17 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 29 Jan 2014 01:17:53 +0000 (01:17 +0000)
* src/stat.c (human_fstype): Add new file system ID definitions.
* NEWS: Mention the improvement.
Fixes http://bugs.gnu.org/16336

NEWS
src/stat.c

diff --git a/NEWS b/NEWS
index 88a41547e239545c89d5bc4c743e5c6b3b26a4f3..e091d1829d2a1a4efd26608bf143c9a2e9b91a44 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,12 @@ GNU coreutils NEWS                                    -*- outline -*-
   it would display an error, requiring --no-dereference to avoid the issue.
   [bug introduced in coreutils-5.3.0]
 
+** Improvements
+
+  stat and tail work better with HFS+ and HFSX.  stat -f --format=%T now reports
+  the file system type, and tail -f now uses inotify for files, rather than the
+  default of issuing a warning and reverting to polling.
+
 
 * Noteworthy changes in release 8.22 (2013-12-13) [stable]
 
index 4b87af5e7d18a8c49c8c2c0030f3b32798b1ed59..270c0330113aab065f25f321252357e3ffae1c6c 100644 (file)
@@ -317,6 +317,10 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "gpfs";
     case S_MAGIC_HFS: /* 0x4244 local */
       return "hfs";
+    case S_MAGIC_HFS_PLUS: /* 0x482B local */
+      return "hfs+";
+    case S_MAGIC_HFS_X: /* 0x4858 local */
+      return "hfsx";
     case S_MAGIC_HOSTFS: /* 0xC0FFEE local */
       return "hostfs";
     case S_MAGIC_HPFS: /* 0xF995E849 local */