summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2012-12-15 00:13:55 +0100
committerBernhard Voelker <mail@bernhard-voelker.de>2012-12-15 00:15:25 +0100
commitc321f7450f24c495382aabf9125a2701f47e5a04 (patch)
tree7bc95022a068e369f7e3a1a966e07a9d6d355b21
parent9c506806fa3904fba60d9f67f381cf90fe6f1e69 (diff)
downloadcoreutils-c321f7450f24c495382aabf9125a2701f47e5a04.tar.xz
tail,stat: improve support for the ceph file system
Teach tail -f that it must use polling on ceph file systems, and let stat -f --format=%T report the file system type name, "ceph". Website: http://ceph.com/ * src/stat.c (human_fstype): Add a case: ceph, 0x00C36400, remote. * NEWS (Improvements): Mention it. * THANKS.in: Update. Reported by Konrad Wróblewski in http://bugs.gnu.org/13172.
-rw-r--r--NEWS6
-rw-r--r--THANKS.in1
-rw-r--r--src/stat.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e22d3a9e5..1ee2c17a8 100644
--- a/NEWS
+++ b/NEWS
@@ -59,6 +59,12 @@ GNU coreutils NEWS -*- outline -*-
nl no longer supports the --page-increment option which was deprecated
since coreutils-7.5. Use --line-increment instead.
+** Improvements
+
+ stat and tail now know about CEPH. stat -f --format=%T now reports the file
+ system type, and tail -f uses polling for files on CEPH file systems.
+
+
** Build-related
Perl is now more of a prerequisite. It has long been required in order
diff --git a/THANKS.in b/THANKS.in
index f0ef9b868..900979517 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -342,6 +342,7 @@ Keith Thompson kst@cts.com
Ken Pizzini kenp@halcyon.com
Kevin Mudrick kmudrick@healthmarketscience.com
Kirk Kelsey kirk.kelsey@0x4b.net
+Konrad Wróblewski coni@o2.pl
Kristin E Thomas kristint@us.ibm.com
Kjetil Torgrim Homme kjetilho@ifi.uio.no
Kristoffer Rose kris@diku.dk
diff --git a/src/stat.c b/src/stat.c
index 51f4b9067..b2459e06d 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -266,6 +266,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "binfmt_misc";
case S_MAGIC_BTRFS: /* 0x9123683E local */
return "btrfs";
+ case S_MAGIC_CEPH: /* 0x00C36400 remote */
+ return "ceph";
case S_MAGIC_CGROUP: /* 0x0027E0EB local */
return "cgroupfs";
case S_MAGIC_CIFS: /* 0xFF534D42 remote */