From: Jim Meyering Date: Wed, 5 Sep 2012 20:33:44 +0000 (+0200) Subject: tail,stat: add support for VZFS X-Git-Tag: v8.20~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97b786a33d54ea6621e2cb9c48d56b7190a1eaf7;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/NEWS b/NEWS index a848ffed70..63fa042a33 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 f75b7aff7f..a9fb95165f 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 */