[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11823: tail: unrecognized file system type 0x61756673 for ‘/var/log/
From: |
Jim Meyering |
Subject: |
bug#11823: tail: unrecognized file system type 0x61756673 for ‘/var/log/messages’. please report this to address@hidden reverting to polling |
Date: |
Sat, 30 Jun 2012 18:21:25 +0200 |
Michael Mol wrote:
> "tail: unrecognized file system type 0x61756673 for
> ‘/var/log/messages’. please report this to address@hidden
> reverting to polling"
>
> At the time, mount indicated the filesystem in question was aufs.
>
> The manpage for aufs shows a description of it: "aufs - advanced multi
> layered unification filesystem. version 3.3-20120326"
>
> This was on the Gentoo 12.1 liveDVD.
Thank you!
Here's the patch I expect to push soon:
>From b0d8d3242998852e1a8a58b3f1b48186ad1063ec Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 30 Jun 2012 18:19:53 +0200
Subject: [PATCH] stat,tail: recognize new file system type: aufs
* src/stat.c (human_fstype) [__linux__]: Add a 'case' for the new
remote file system type: aufs (0x61756673).
* NEWS (New features): Mention stat -f.
(Bug fixes): Mention it for tail -f.
Reported by Michael Mol in http://bugs.gnu.org/11823
---
NEWS | 4 ++--
THANKS.in | 1 +
src/stat.c | 5 +++++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 8c75a32..be98796 100644
--- a/NEWS
+++ b/NEWS
@@ -25,13 +25,13 @@ GNU coreutils NEWS -*-
outline -*-
in all situations on GNU/Linux, by correctly determining the block size.
[df bug since coreutils-5.0.91, stat bug since the initial implementation]
- tail -f no longer tries to use inotify on PanFS file systems
+ tail -f no longer tries to use inotify on AUFS or PanFS file systems
[you might say this was introduced in coreutils-7.5, along with inotify
support, but even now, its magic number isn't in the usual place.]
** New features
- stat -f recognizes the new remote file system type, panfs.
+ stat -f recognizes the new remote file system types: aufs, panfs.
** Changes in behavior
diff --git a/THANKS.in b/THANKS.in
index 2bdeab5..2873594 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -422,6 +422,7 @@ Michael J. Croghan address@hidden
Michael J. Daniel address@hidden
Michael McFarland address@hidden
Michael McLagan address@hidden
+Michael Mol address@hidden
Michael Piefel address@hidden
Michael Steffens address@hidden
Michael Stutz address@hidden
diff --git a/src/stat.c b/src/stat.c
index 94b63f6..e56f1ff 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -249,6 +249,11 @@ human_fstype (STRUCT_STATVFS const *statfsbuf)
return "afs";
case S_MAGIC_ANON_INODE_FS: /* 0x09041934 local */
return "anon-inode FS";
+ case S_MAGIC_AUFS: /* 0x61756673 remote */
+ /* FIXME: change syntax or add an optional attribute like "inotify:no".
+ The above is labeled as "remote" so that tail always uses polling,
+ but this isn't really a remote file system type. */
+ return "aufs";
case S_MAGIC_AUTOFS: /* 0x0187 local */
return "autofs";
case S_MAGIC_BEFS: /* 0x42465331 local */
--
1.7.11.1.104.ge7b44f1