From: Pádraig Brady Date: Fri, 13 Jun 2014 08:16:31 +0000 (+0100) Subject: tail: fix --follow to use polling mode for VXFS X-Git-Tag: v8.23~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a51bd37362cdbfc2fab50458a67452a546dcfaf;p=thirdparty%2Fcoreutils.git tail: fix --follow to use polling mode for VXFS Veritas File System can run in single instance or clustered mode, so mark as remote to avoid using inotify for the latter case. * src/stat.c (human_fstype): Tag VXFS as remote, to use polling for the clustered variant (VXCFS). * NEWS: Mention the bug fix. Reported by Ondřej Vašík in http://bugzilla.redhat.com/1104244 Fixes http://bugs.gnu.org/17770 --- diff --git a/NEWS b/NEWS index 2f43da60ce..5d1fe99406 100644 --- a/NEWS +++ b/NEWS @@ -77,6 +77,9 @@ GNU coreutils NEWS -*- outline -*- shuf --repeat no longer dumps core if the input is empty. [bug introduced with the --repeat feature in coreutils-8.22] + tail -f now uses polling mode for VXFS to cater for its clustered mode. + [bug introduced with inotify support added in coreutils-7.5] + ** New features od accepts a new option: --endian=TYPE to handle inputs with different byte diff --git a/src/stat.c b/src/stat.c index 0f67d22dfe..b65dbe556c 100644 --- a/src/stat.c +++ b/src/stat.c @@ -443,7 +443,9 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return "v9fs"; case S_MAGIC_VMHGFS: /* 0xBACBACBC remote */ return "vmhgfs"; - case S_MAGIC_VXFS: /* 0xA501FCF5 local */ + case S_MAGIC_VXFS: /* 0xA501FCF5 remote */ + /* Veritas File System can run in single instance or clustered mode, + so mark as remote to cater for the latter case. */ return "vxfs"; case S_MAGIC_VZFS: /* 0x565A4653 local */ return "vzfs";