summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-06-13 09:16:31 +0100
committerPádraig Brady <P@draigBrady.com>2014-06-13 10:12:39 +0100
commit8a51bd37362cdbfc2fab50458a67452a546dcfaf (patch)
tree2a09e1a860751799fca9e8e052197a72d37aab19
parent4f169fe49bc6788cd1d5e5cce84b41d40f053d5f (diff)
downloadcoreutils-8a51bd37362cdbfc2fab50458a67452a546dcfaf.tar.gz
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
-rw-r--r--NEWS3
-rw-r--r--src/stat.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 2f43da60c..5d1fe9940 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 0f67d22df..b65dbe556 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";