From 97b786a33d54ea6621e2cb9c48d56b7190a1eaf7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 5 Sep 2012 22:33:44 +0200 Subject: [PATCH] tail,stat: add support for VZFS * src/stat.c (human_fstype): Add a case: vzfs, 0x565A4653 (local). Reported by Jens Rosenboom in http://bugs.gnu.org/12356 * NEWS (Improvement): Mention it. --- NEWS | 8 ++++---- src/stat.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index a848ffe..63fa042 100644 --- a/NEWS +++ b/NEWS @@ -25,10 +25,10 @@ GNU coreutils NEWS -*- outline -*- ** 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. + stat and tail work better with ZFS and VZFS. stat -f --format=%T now + reports the file system type, and tail -f now uses inotify for files + on those file systems, rather than the default (for unknown file system + types) of issuing a warning and reverting to polling. * Noteworthy changes in release 8.19 (2012-08-20) [stable] diff --git a/src/stat.c b/src/stat.c index f75b7af..a9fb951 100644 --- a/src/stat.c +++ b/src/stat.c @@ -415,6 +415,8 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "v9fs"; case S_MAGIC_VXFS: /* 0xA501FCF5 local */ return "vxfs"; + case S_MAGIC_VZFS: /* 0x565A4653 local */ + return "vzfs"; case S_MAGIC_XENFS: /* 0xABBA1974 local */ return "xenfs"; case S_MAGIC_XENIX: /* 0x012FF7B4 local */ -- 2.7.4