]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tail,stat: improve support for ZFS
authorJim Meyering <meyering@redhat.com>
Wed, 29 Aug 2012 07:32:49 +0000 (09:32 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 29 Aug 2012 07:42:33 +0000 (09:42 +0200)
This change enables tail -f to use inotify and lets
stat -f --format=%T report the file system type name, "zfs".
* src/stat.c (human_fstype): Add a case: zfs, 0x2fc12fc1.
* NEWS (Improvements): Mention it.
* THANKS.in: Update.
Reported by Raimonds Miltins in http://bugs.gnu.org/12301.

NEWS
THANKS.in
src/stat.c

diff --git a/NEWS b/NEWS
index 798a512958a636b4883c08e55192dca94dbb7bd6..f3874fd220844f65dbfff9ac447d7f87ffed2455 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,13 @@ GNU coreutils NEWS                                    -*- outline -*-
   than ignoring the -d option and failing with an 'Is a directory' error.
   [bug introduced in coreutils-8.19, with the addition of --dir (-d)]
 
+** Improvements
+
+  stat and tail work better with ZFS.  stat -f --format=%T now reports the
+  file system type, "zfs", and tail -f now uses inotify for files on ZFS
+  file systems, rather than the default (for unknown file system types)
+  of polling.
+
 
 * Noteworthy changes in release 8.19 (2012-08-20) [stable]
 
index f288174dbc40e399a00f4f4fef2a320e3531f17a..158015187554be1999f78325fbe184b351e06256 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -507,6 +507,7 @@ Piotr Kwapulinski                   kwap@univ.gda.pl
 Prashant TR                         tr@eth.net
 Priit Jõerüüt                       jemm4jemm@yahoo.com
 Primoz PETERLIN                     primozz.peterlin@gmail.com
+Raimonds Miltins                    raimonds@pro-9.com
 Rainer Orth                         ro@TechFak.Uni-Bielefeld.DE
 Ralf W. Stephan                     stephan@tmt.de
 Ralph Loader                        loader@maths.ox.ac.uk
index e56f1ffbc478f27cd48a8855d6d973cb24ffae80..f75b7aff7f6170d58f810a4176a9bcfd21c8ec5e 100644 (file)
@@ -423,6 +423,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
       return "xfs";
     case S_MAGIC_XIAFS: /* 0x012FD16D local */
       return "xia";
+    case S_MAGIC_ZFS: /* 0x2FC12FC1 local */
+      return "zfs";
 
 # elif __GNU__
     case FSTYPE_UFS: