From c321f7450f24c495382aabf9125a2701f47e5a04 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Sat, 15 Dec 2012 00:13:55 +0100 Subject: [PATCH] tail,stat: improve support for the ceph file system MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- NEWS | 6 ++++++ THANKS.in | 1 + src/stat.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/NEWS b/NEWS index e22d3a9..1ee2c17 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 f0ef9b8..9009795 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 51f4b90..b2459e0 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 */ -- 2.7.4